import React from "react" import BoxFull from "../base/BoxFull" import FormLabelled from "../base/FormLabelled" import FormLabel from "../base/formparts/FormLabel" import InputWithIcon from "../base/InputWithIcon" import { faFolder, faPlus } from "@fortawesome/free-solid-svg-icons" import Radio from "../base/Radio" import Button from "../base/Button" import useRepositoryEditor from "../../hooks/useRepositoryEditor" import FormAlert from "../base/formparts/FormAlert" export default function BoxRepositoryCreate({ ...props }) { const { evaluationMode, setEvaluationMode, name, setName, save, error, } = useRepositoryEditor() return ( {e.preventDefault(); save()}}> setName(e.target.value)} />   {error ? {error.toString()} : null} ) }