diff --git a/packages/web/src/components/InitiativeHeader.tsx b/packages/web/src/components/InitiativeHeader.tsx new file mode 100644 index 0000000..8b3324e --- /dev/null +++ b/packages/web/src/components/InitiativeHeader.tsx @@ -0,0 +1,52 @@ +import { ChevronLeft } from "lucide-react"; +import { Card, CardContent } from "@/components/ui/card"; +import { Button } from "@/components/ui/button"; +import { StatusBadge } from "@/components/StatusBadge"; + +export interface InitiativeHeaderProps { + initiative: { + id: string; + name: string; + status: string; + createdAt: string; + updatedAt: string; + }; + onBack: () => void; +} + +export function InitiativeHeader({ + initiative, + onBack, +}: InitiativeHeaderProps) { + return ( +
+ Created: {new Date(initiative.createdAt).toLocaleDateString()} + {" | "} + Updated: {new Date(initiative.updatedAt).toLocaleDateString()} +
+