import PrimaryButton from "@/Components/PrimaryButton" import SecondaryButton from "@/Components/SecondaryButton" import InputLabel from "@/Components/InputLabel" import Modal from "@/Components/Modal" import TextInput from "@/Components/TextInput" import { useState } from "react" import Dropdown from '@/Components/Dropdown'; const CreateFile = ({ path, fileType, setCreateFileType }) => { const [file, setFile] = useState('') const createFile = (e) => { e.preventDefault() console.log(`create ${fileType} with name ${file} clicked`) } if (!fileType) { return; } return ( <> setCreateFileType(false)}>

Create a new {fileType} in {path}

setFile(e.target.value) } className="mt-1 block w-3/4" isFocused placeholder={`${fileType} Name`} />
Create {fileType} setCreateFileType(false)}> Cancel
) } export default CreateFile