import type { ReactNode } from 'react'; import type { LucideIcon } from 'lucide-react'; import { Input, type InputProps } from '~/components/ui/input'; import { cn } from '~/lib/utils'; interface IconInputProps extends InputProps { icon: LucideIcon; trailing?: ReactNode; } export function IconInput({ icon: Icon, trailing, className, ...props }: IconInputProps) { return (
{trailing &&
{trailing}
}
); }