initial commit
This commit is contained in:
commit
2e0cbc254c
174 changed files with 27742 additions and 0 deletions
15
resources/js/components/icon.tsx
Normal file
15
resources/js/components/icon.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { cn } from '@/lib/utils';
|
||||
import { type LucideProps } from 'lucide-react';
|
||||
import { type ComponentType } from 'react';
|
||||
|
||||
interface IconProps extends Omit<LucideProps, 'ref'> {
|
||||
iconNode: ComponentType<LucideProps>;
|
||||
}
|
||||
|
||||
export function Icon({
|
||||
iconNode: IconComponent,
|
||||
className,
|
||||
...props
|
||||
}: IconProps) {
|
||||
return <IconComponent className={cn('h-4 w-4', className)} {...props} />;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue