Skip to content

Commit

Permalink
Add mobile menu icons
Browse files Browse the repository at this point in the history
  • Loading branch information
BuiltByWalsh committed Dec 3, 2024
1 parent 093a0d3 commit ed7f403
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion components/app-shell/mobile-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
'use client'

import { HomeIcon, Menu, Moon, RssIcon, Sun } from 'lucide-react'
import {
HomeIcon,
BookTypeIcon,
SquareTerminalIcon,
FolderGit2Icon,
BadgeInfoIcon,
Menu,
Moon,
RssIcon,
Sun,
} from 'lucide-react'
import Link from 'next/link'
import { useTheme } from 'next-themes'
import { type ReactNode } from 'react'

import { Button, buttonVariants } from '@/components/ui/button'
import { Sheet, SheetClose, SheetContent, SheetTrigger } from '@/components/ui/sheet'
import { SITE_NAVIGATIONAL_ITEMS } from '@/lib/constants'
import { cn } from '@/lib/utils'

const navItemIcons: Record<string, ReactNode> = {
blog: <BookTypeIcon className="mr-2 h-4 w-4" />,
about: <BadgeInfoIcon className="mr-2 h-4 w-4" />,
stack: <SquareTerminalIcon className="mr-2 h-4 w-4" />,
portfolio: <FolderGit2Icon className="mr-2 h-4 w-4" />,
}

export function MobileMenu() {
const { theme, setTheme } = useTheme()

Expand Down Expand Up @@ -41,6 +59,7 @@ export function MobileMenu() {
href={navItem.href}
className={cn(buttonVariants({ variant: 'ghost' }), 'w-full justify-start rounded-none border-b')}
>
{navItemIcons[navItem.value.toLowerCase()]}
{navItem.value}
</Link>
</SheetClose>
Expand Down

0 comments on commit ed7f403

Please sign in to comment.