import { getIcon, iconNames } from '@sd/assets/util'; import clsx from 'clsx'; import { ImgHTMLAttributes } from 'react'; import { useIsDark } from '~/hooks'; export type IconName = keyof typeof iconNames; interface Props extends ImgHTMLAttributes { name: IconName; size?: number; theme?: 'dark' | 'light'; } export const Icon = ({ name, size, theme, ...props }: Props) => { const isDark = useIsDark(); return ( ); };