20 lines
322 B
TypeScript
20 lines
322 B
TypeScript
import type { LucideIcon } from "lucide-react";
|
|
|
|
interface IconProps {
|
|
icon: LucideIcon;
|
|
size?: number;
|
|
strokeWidth?: number;
|
|
stroke?: string;
|
|
}
|
|
|
|
const Icon = ({ icon: Icon, size = 20, strokeWidth = 1.5 }: IconProps) => {
|
|
return (
|
|
<Icon
|
|
size={size}
|
|
strokeWidth={strokeWidth}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default Icon;
|