diff --git a/components/Header.tsx b/components/Header.tsx index e3413da..3b1784c 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -5,24 +5,14 @@ import {Fragment, useEffect, useRef} from 'react' import {Popover, Transition} from '@headlessui/react' import clsx from 'clsx' import {Container} from './Container' -import {CloseIcon} from '@/components/icons/CloseIcon' -import {ChevronDownIcon} from '@/components/icons/ChevronDownIcon' -import {MoonIcon} from '@/components/icons/MoonIcon' -import {SunIcon} from '@/components/icons/SunIcon' +import {MobileNavItem} from './MobileNavItem' +import {CloseIcon} from './icons/CloseIcon' +import {ChevronDownIcon} from './icons/ChevronDownIcon' +import {MoonIcon} from './icons/MoonIcon' +import {SunIcon} from './icons/SunIcon' import avatar from '@/public/static/images/avatar.jpg' import type {Props} from 'types' - -function MobileNavItem({href, children}: { href: string } & Props) { - return ( -
  • - - {children} - -
  • - ) -} - function MobileNavigation(props: Props) { return ( diff --git a/components/MobileNavItem.tsx b/components/MobileNavItem.tsx new file mode 100644 index 0000000..9c0a1ed --- /dev/null +++ b/components/MobileNavItem.tsx @@ -0,0 +1,13 @@ +import {Props} from '@/types'; +import {Popover} from '@headlessui/react' +import Link from 'next/link' + +export function MobileNavItem({href, children}: { href: string } & Props) { + return ( +
  • + + {children} + +
  • + ) +} \ No newline at end of file