type FieldProps = {
  label: string
  children: React.ReactNode
}

export function Field({ label, children }: FieldProps): React.JSX.Element {
  return (
    <label className="grid gap-2">
      <span className="text-sm font-medium">{label}</span>
      {children}
    </label>
  )
}
