import { Moon, Sun } from 'lucide-react'
import { useTheme } from '~/components/theme-provider'
import { Button } from '~/components/ui/button'

export function ThemeToggle() {
  const { theme, toggle } = useTheme()
  return (
    <Button variant="outline" size="icon" onClick={toggle} aria-label="Toggle theme">
      {theme === 'light' ? <Moon /> : <Sun />}
    </Button>
  )
}
