import React from "react";
import { FormControl, FormControlProps } from "react-compose-form";
import { FileField, InputFileFieldProps } from "@/components/form/field/file.field";

type InputFileControlProps = FormControlProps<InputFileFieldProps>;

export const FileControl: React.FC<InputFileControlProps> = (props) => {
    return (
        <FormControl<InputFileFieldProps>
          {...props}
          as={FileField} />
    );
};
