mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
27 lines
722 B
TypeScript
27 lines
722 B
TypeScript
import React, { useState } from 'react';
|
|
import Arrow1 from './imgs/arrow.svg';
|
|
|
|
function MobileNavigation() {
|
|
return <div>Mobile Navigation</div>;
|
|
}
|
|
|
|
function DesktopNavigation() {
|
|
return (
|
|
<div className="fixed h-screen w-72 border-r-2 border-gray-100 bg-gray-50 lg:w-96">
|
|
<div className="h-16 border-b-2 border-gray-100">
|
|
<button className="float-right mr-4 mt-5 h-5 w-5">
|
|
<img src={Arrow1} alt="menu toggle" className="m-auto w-3" />
|
|
</button>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default function Navigation({ isMobile }: { isMobile: boolean }) {
|
|
if (isMobile) {
|
|
return <MobileNavigation />;
|
|
} else {
|
|
return <DesktopNavigation />;
|
|
}
|
|
}
|