/** @jsxImportSource @emotion/react */ import { ReactNode } from 'react'; function InputContainer({ id, children, label, labelSize, labelColor, minWidth, maxWidth, error, tolTip, important, ...props }: InputTypes & { children: ReactNode; id: string | number; error: ErrorType; tolTip: TolTipType }) { const LabelColor = () => { if (error?.error) return error?.messageColor ?? '#FF6767'; return labelColor ?? '#888'; }; return (
{error?.message}
)} {!!tolTip?.description && !error?.error && ({tolTip?.description}
)}