import type { Goal } from "@paperclip/shared"; import { StatusBadge } from "./StatusBadge"; import { formatDate } from "../lib/utils"; import { Separator } from "@/components/ui/separator"; interface GoalPropertiesProps { goal: Goal; } function PropertyRow({ label, children }: { label: string; children: React.ReactNode }) { return (
{label}
{children}
); } export function GoalProperties({ goal }: GoalPropertiesProps) { return (
{goal.level} {goal.ownerAgentId && ( {goal.ownerAgentId.slice(0, 8)} )} {goal.parentId && ( {goal.parentId.slice(0, 8)} )}
{formatDate(goal.createdAt)} {formatDate(goal.updatedAt)}
); }