"use client"; /** * 세금계산서 목록 설정 패널 */ import React from "react"; import { Label } from "@/components/ui/label"; import { Input } from "@/components/ui/input"; import { Switch } from "@/components/ui/switch"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { TaxInvoiceListConfig, defaultTaxInvoiceListConfig } from "./types"; interface TaxInvoiceListConfigPanelProps { config: TaxInvoiceListConfig; onChange: (config: TaxInvoiceListConfig) => void; } export function TaxInvoiceListConfigPanel({ config, onChange, }: TaxInvoiceListConfigPanelProps) { const currentConfig = { ...defaultTaxInvoiceListConfig, ...config }; const handleChange = (key: keyof TaxInvoiceListConfig, value: any) => { onChange({ ...currentConfig, [key]: value }); }; return (
{/* 기본 설정 */}

기본 설정

handleChange("title", e.target.value)} placeholder="세금계산서 관리" className="h-8 text-xs" />
handleChange("showHeader", checked)} />
{/* 기본 필터 */}

기본 필터

{/* 권한 설정 */}

권한 설정

handleChange("canCreate", checked)} />
handleChange("canEdit", checked)} />
handleChange("canDelete", checked)} />
handleChange("canIssue", checked)} />
handleChange("canCancel", checked)} />
); }