import { useState } from "react"; import { Target } from "@phosphor-icons/react"; import type { AgentRecord, GoalRecord } from "@shared/types"; import { ActionButton, Input, Select, TextArea } from "../ui"; export function GoalCreator({ companyId, agents, goals, onSaved, }: { companyId: string; agents: AgentRecord[]; goals: GoalRecord[]; onSaved: () => Promise; }) { const [title, setTitle] = useState(""); const [description, setDescription] = useState(""); const [ownerAgentId, setOwnerAgentId] = useState(agents[0]?.id ?? ""); const [parentId, setParentId] = useState(""); return (