import { Writing } from "@/lib/types"; import { FileText } from "lucide-react"; const kindLabel: Record = { essay: "Essay", script: "Script", other: "Other", novel: "Novel", }; const WritingsList = ({ writings }: { writings: Writing[] }) => { return (
{writings.map((w) => ( {w.title} {kindLabel[w.kind]} ))}
); }; export default WritingsList;