2025-01-13 19:12:06 -05:00
|
|
|
'use client';
|
|
|
|
|
2024-02-15 20:49:19 -05:00
|
|
|
import Image from 'next/image';
|
|
|
|
import Link from 'next/link';
|
2025-01-13 19:12:06 -05:00
|
|
|
import { useTheme } from 'next-themes';
|
2024-02-14 21:30:10 -05:00
|
|
|
|
|
|
|
export const Logo = () => {
|
2025-01-13 19:12:06 -05:00
|
|
|
const { theme } = useTheme();
|
|
|
|
|
2024-02-14 21:30:10 -05:00
|
|
|
return (
|
2024-03-29 23:15:34 -04:00
|
|
|
// TODO: Make this go back to the organization page if you are logged in
|
2024-02-15 20:49:19 -05:00
|
|
|
<Link href='/'>
|
2025-01-13 19:12:06 -05:00
|
|
|
<div
|
|
|
|
className='hidden items-center gap-x-2 transition hover:opacity-75 md:flex'
|
|
|
|
suppressHydrationWarning
|
|
|
|
>
|
2024-02-15 20:49:19 -05:00
|
|
|
<Image
|
2025-01-13 19:12:06 -05:00
|
|
|
src={`/logo-${theme === 'light' ? 'light' : 'dark'}.svg`}
|
2024-02-15 20:49:19 -05:00
|
|
|
alt='logo'
|
|
|
|
height={100}
|
|
|
|
width={100}
|
|
|
|
/>
|
2024-02-14 21:30:10 -05:00
|
|
|
</div>
|
|
|
|
</Link>
|
|
|
|
);
|
|
|
|
};
|