Add IOFileInput component to IOInputField

This commit is contained in:
anovazzi1 2024-01-26 15:31:21 -03:00
commit 07cbd593eb
3 changed files with 15 additions and 1 deletions

View file

@ -1,4 +1,5 @@
import { IOInputProps } from "../../types/components";
import IOFileInput from "../IOInputs/FileInput";
import { Textarea } from "../ui/textarea";
export default function IOInputField({
@ -18,7 +19,7 @@ export default function IOInputField({
/>
);
case "fileInput":
return <div></div>;
return <IOFileInput field={field} updateValue={updateValue} />;
default:
return (

View file

@ -0,0 +1,7 @@
import { IOFileInputProps } from "../../../types/components";
export default function IOFileInput({ field, updateValue }: IOFileInputProps) {
//component to handle file upload from chatIO
function handleCLick() {}
return <div></div>;
}

View file

@ -116,6 +116,7 @@ export type CodeAreaComponentType = {
};
export type FileComponentType = {
IOInputProps;
disabled: boolean;
onChange: (value: string[] | string) => void;
value: string;
@ -651,3 +652,8 @@ export type IOInputProps = {
field: TemplateVariableType;
updateValue: (e: any) => void;
};
export type IOFileInputProps = {
field: TemplateVariableType;
updateValue: (e: any) => void;
};