"use client"; import * as React from "react"; import Link from "next/link"; import { NotebookTextIcon, PenLineIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent } from "@/components/ui/card"; import { DraftBadge } from "@/components/frontend/story/DraftBadge"; import { EMPTY_JOURNAL_DRAFT, JournalFormDialog, type MissionOption, } from "./JournalFormDialog"; export interface JournalCard { id: number; title: string; status: "draft" | "published"; authorName: string; dateLabel: string | null; missionLabel: string | null; excerpt: string; } interface JournalsListProps { journals: JournalCard[]; missions: MissionOption[]; } export function JournalsList({ journals, missions }: JournalsListProps) { const [composing, setComposing] = React.useState(false); return (
Member Journals
First-person accounts from the unit: after-action notes, deployment diaries, and everything in between. Write your own at any time; publish when you are happy with it.
No journal entries yet. Be the first to write one.
{journal.excerpt}
)}