mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
initial App/Nav setup
This commit is contained in:
3
frontend/src/components/DocsGPT.tsx
Normal file
3
frontend/src/components/DocsGPT.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function DocsGPT() {
|
||||
return <div>Docs GPT</div>;
|
||||
}
|
||||
17
frontend/src/components/Navigation.tsx
Normal file
17
frontend/src/components/Navigation.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import React, { useState } from 'react';
|
||||
|
||||
function MobileNavigation() {
|
||||
return <div>Mobile Navigation</div>;
|
||||
}
|
||||
|
||||
function DesktopNavigation() {
|
||||
return <div>Desktop Navigation</div>;
|
||||
}
|
||||
|
||||
export default function Navigation({ isMobile }: { isMobile: boolean }) {
|
||||
if (isMobile) {
|
||||
return <MobileNavigation />;
|
||||
} else {
|
||||
return <DesktopNavigation />;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user