import { FormControl, FormLabel, Input, Radio, RadioGroup, Stack, useMultiStyleConfig, } from "@chakra-ui/react"; import { type Dispatch, type SetStateAction, useState } from "react"; export default function (props: { fileStateSet: Dispatch>; isTerminated: boolean; setIsTerminated: Dispatch>; }) { const inputSelectorProps = useMultiStyleConfig("Button", { colorScheme: "blue", }); return ( <> Is the account you are transferring from terminated? props.setIsTerminated(JSON.parse(v))} value={JSON.stringify(props.isTerminated)} > Yes No {props.isTerminated ? ( Proof of Termination props.fileStateSet(e.target.files)} sx={{ "::file-selector-button": { border: "none", outline: "none", ...inputSelectorProps, }, }} type="file" /> ) : null} ); }