mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
19 lines
472 B
TypeScript
19 lines
472 B
TypeScript
import clsx from 'clsx';
|
|
|
|
import { useConceptOptions } from '@/context/ConceptOptionsContext';
|
|
import useWindowSize from '@/hooks/useWindowSize';
|
|
|
|
function Logo() {
|
|
const { darkMode } = useConceptOptions();
|
|
const size = useWindowSize();
|
|
|
|
return (
|
|
<img
|
|
alt=''
|
|
className={clsx('max-h-[1.6rem] w-fit max-w-[11.4rem]')}
|
|
src={size.isSmall ? '/logo_sign.svg' : !darkMode ? '/logo_full.svg' : '/logo_full_dark.svg'}
|
|
/>
|
|
);
|
|
}
|
|
export default Logo;
|