diff --git a/src/components/buttons/ThemeButton.tsx b/src/components/buttons/ThemeButton.tsx new file mode 100644 index 0000000..9002335 --- /dev/null +++ b/src/components/buttons/ThemeButton.tsx @@ -0,0 +1,23 @@ +import clsx from 'clsx'; +import { useTheme } from 'next-themes'; +import * as React from 'react'; +import { FiMoon, FiSun } from 'react-icons/fi'; + +import useLoaded from '@/hooks/useLoaded'; + +type ThemeButtonProps = React.ComponentPropsWithoutRef<'button'>; + +export default function ThemeButton({ className, ...rest }: ThemeButtonProps) { + const { theme, setTheme } = useTheme(); + const isLoaded = useLoaded(); + + return ( + + ); +} diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index ad2537a..648476b 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -1,15 +1,31 @@ +import UnderlineLink from '@/components/links/UnderlineLink'; + export default function Footer() { return ( -