// react import { useState } from "react"; // hooks import useUser from "lib/hooks/useUser"; // components import CreateUpdateStateModal from "components/project/issues/BoardView/state/CreateUpdateStateModal"; // ui import { Button } from "ui"; // icons import { PencilSquareIcon, PlusIcon } from "@heroicons/react/24/outline"; // constants import { addSpaceIfCamelCase } from "constants/common"; type Props = { projectId: string | string[] | undefined; }; const StatesSettings: React.FC = ({ projectId }) => { const [isCreateStateModal, setIsCreateStateModal] = useState(false); const [selectedState, setSelectedState] = useState(); const { states } = useUser(); return ( <> { setSelectedState(undefined); setIsCreateStateModal(false); }} projectId={projectId as string} data={selectedState ? states?.find((state) => state.id === selectedState) : undefined} />

State

Manage the state of this project.

{states?.map((state) => (

{addSpaceIfCamelCase(state.name)}

))}
); }; export default StatesSettings;