/** * 화면명: 선택 레이어 설정 카드 * 레이어별 설정 제목과 활성화·닫기 영역을 공통 레이아웃으로 제공한다. */ "use client"; import type { ReactNode } from "react"; type Props = { title: string; enabled: boolean; onEnabledChange: (enabled: boolean) => void; onClose: () => void; children?: ReactNode; showToggle?: boolean; }; /** 침수흔적도 설정과 같은 제목·토글·닫기·본문 여백을 제공한다. */ export default function LayerSettingCard({ title, enabled, onEnabledChange, onClose, children, showToggle = true, }: Props) { return (
{showToggle ? ( ) : null}
{children ? (
{children}
) : null}
); }