import { LucideIcon } from 'lucide-react'; import * as React from 'react'; import { IconType } from 'react-icons'; import { cn } from '@/lib/utils'; import UnstyledLink, { UnstyledLinkProps, } from '@/components/links/UnstyledLink'; const IconLinkVariant = [ 'primary', 'outline', 'ghost', 'light', 'dark', ] as const; type IconLinkProps = { isDarkBg?: boolean; variant?: (typeof IconLinkVariant)[number]; icon?: IconType | LucideIcon; classNames?: { icon?: string; }; } & Omit; const IconLink = React.forwardRef( ( { className, icon: Icon, variant = 'outline', isDarkBg = false, classNames, ...rest }, ref ) => { return ( {Icon && } ); } ); export default IconLink;