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