import type { Goal } from "@paperclip/shared"; import { StatusBadge } from "./StatusBadge"; import { ChevronRight } from "lucide-react"; import { cn } from "../lib/utils"; import { useState } from "react"; interface GoalTreeProps { goals: Goal[]; onSelect?: (goal: Goal) => void; } interface GoalNodeProps { goal: Goal; children: Goal[]; allGoals: Goal[]; depth: number; onSelect?: (goal: Goal) => void; } function GoalNode({ goal, children, allGoals, depth, onSelect }: GoalNodeProps) { const [expanded, setExpanded] = useState(true); const hasChildren = children.length > 0; return (
No goals.
; } return (