import { BanIcon, InfoIcon } from 'lucide-react'; import { forwardRef } from 'react'; import { Input } from '../ui/input'; import type { InputProps } from '../ui/input'; import { Label } from '../ui/label'; import { Tooltiper } from '../ui/tooltip'; type WithLabel = { children: React.ReactNode; label: string; error?: string | undefined; info?: React.ReactNode; className?: string; }; type InputWithLabelProps = InputProps & Omit; export const WithLabel = ({ children, className, label, info, error, }: WithLabel) => { return (
{error && (
Issues
)}
{children}
); }; export const InputWithLabel = forwardRef( (props, ref) => { return ( ); }, ); InputWithLabel.displayName = 'InputWithLabel';