"use client"; import React from "react"; import { Label } from "@/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Slider } from "@/components/ui/slider"; import { Switch } from "@/components/ui/switch"; import { SplitPanelLayoutConfig } from "../types"; export interface CommonConfigTabProps { config: SplitPanelLayoutConfig; onChange?: (key: string, value: any) => void; updateConfig: (updates: Partial) => void; updateRightPanel: (updates: Partial) => void; } export const CommonConfigTab: React.FC = ({ config, updateConfig, updateRightPanel, }) => { const relationshipType = config.rightPanel?.relation?.type || "detail"; return (
{/* 관계 타입 선택 */}

우측 패널 표시 방식

좌측 항목 선택 시 우측에 어떤 형태로 데이터를 보여줄지 설정합니다

{/* 레이아웃 설정 */}

레이아웃

updateConfig({ splitRatio: value[0] })} min={20} max={80} step={5} />
updateConfig({ resizable: checked })} />
updateConfig({ autoLoad: checked })} />
); };