import React from 'react';
import { Field } from './Inputs';

interface QuestionProps { label: string; required?: boolean; description?: string; error?: string; children: React.ReactNode; }
export const Question: React.FC<QuestionProps> = ({ label, required, description, error, children }) => (
    <Field label={label} required={required} description={description} error={error}>{children}</Field>
);
export default Question;
