AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

icon.tsx 314B

1234567891011121314
  1. import type { LucideIcon } from 'lucide-react';
  2. interface IconProps {
  3. iconNode?: LucideIcon | null;
  4. className?: string;
  5. }
  6. export function Icon({ iconNode: IconComponent, className }: IconProps) {
  7. if (!IconComponent) {
  8. return null;
  9. }
  10. return <IconComponent className={className} />;
  11. }