"use client"; import { Button } from "@/components/ui/button"; import { FileText } from "lucide-react"; import { useReportDesigner } from "@/contexts/ReportDesignerContext"; const TEMPLATES = [ { id: "order", name: "발주서", icon: "📋" }, { id: "invoice", name: "청구서", icon: "💰" }, { id: "basic", name: "기본", icon: "📄" }, ]; export function TemplatePalette() { const { applyTemplate } = useReportDesigner(); const handleApplyTemplate = (templateId: string) => { applyTemplate(templateId); }; return (
{TEMPLATES.map((template) => ( ))}
); }