"use client"; import React from "react"; import { ListWidgetConfig, QueryResult } from "../types"; import { Label } from "@/components/ui/label"; import { UnifiedColumnEditor } from "../widgets/list-widget/UnifiedColumnEditor"; import { ListTableOptions } from "../widgets/list-widget/ListTableOptions"; interface ListWidgetSectionProps { queryResult: QueryResult | null; config: ListWidgetConfig; onConfigChange: (updates: Partial) => void; } /** * 리스트 위젯 설정 섹션 * - 컬럼 설정 * - 테이블 옵션 */ export function ListWidgetSection({ queryResult, config, onConfigChange }: ListWidgetSectionProps) { return (
{/* 컬럼 설정 - 쿼리 실행 후에만 표시 */} {queryResult && queryResult.columns.length > 0 && (
)} {/* 테이블 옵션 */} {config.columns.length > 0 && (
)}
); }