Files
d9055bc7-4e60-491a-b99a-477…/src/utils/resolve-icon.tsx
2026-06-18 15:45:15 +00:00

21 lines
430 B
TypeScript

import { resolveIcon } from "./resolve-icon";
import type { IconInput } from "./resolve-icon";
const DynamicIcon = ({
icon,
size,
className,
strokeWidth,
}: {
icon: IconInput;
size?: number;
className?: string;
strokeWidth?: number;
}) => {
const Icon = resolveIcon(icon);
return <Icon size={size} className={className} strokeWidth={strokeWidth} />;
};
export default DynamicIcon;
export type { IconInput };