import Label from './Label';


export default function WithLabel({
  label,
  label_width,
  children,
}: {
  label: string;
  label_width?: number;
  children: React.ReactNode;
}) {
  return (
    <div className="flex gap-2">
        <Label className={`w-${label_width} translate-y-3 text-right`}>{label}</Label>
        <div className="flex-1">
            {children}
        </div>
    </div>
  );
}
