Files
DocsGPT/frontend/src/components/Navigation.tsx
2023-02-10 16:20:47 -05:00

18 lines
381 B
TypeScript

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 />;
}
}