mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
27 lines
541 B
TypeScript
27 lines
541 B
TypeScript
import clsx from 'clsx';
|
|
import Image from 'next/image';
|
|
|
|
import { useAppSelector } from '@/store/hooks';
|
|
|
|
type Props = {
|
|
className?: string;
|
|
size?: 256 | 96 | 64 | 48 | 40 | 32 | 24 | 16;
|
|
};
|
|
|
|
const Logo: React.FC<Props> = ({ size = 64, className }) => {
|
|
const theme = useAppSelector((state) => state.build.theme);
|
|
|
|
return (
|
|
<Image
|
|
alt="Reactive Resume"
|
|
src={`/logo/${theme}.svg`}
|
|
className={clsx('rounded', className)}
|
|
width={size}
|
|
height={size}
|
|
priority
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default Logo;
|