import { Icon } from "../../icon"; interface Props { mode: "create" | "edit"; name: string; description: string; error: string | null; onNameChange: (name: string) => void; onDescriptionChange: (desc: string) => void; onSubmit: (e: React.FormEvent) => void; onCancel: () => void; } export const ProjectDialog = ({ mode, name, description, error, onNameChange, onDescriptionChange, onSubmit, onCancel, }: Props) => { return (

{mode === "create" ? "Create Project" : "Edit Project"}