'use client'; import { useState, useEffect } from 'react'; import { useRouter } from 'next/navigation'; import { fetchApi } from '@/lib/utils/client'; import { useStudioContext } from '@/app/studio/context'; import { useCrewWidgetConfigContext } from '../context'; import { CREW_WIDGET_THEMES, CREW_PERIODS, FONT_FAMILIES } from '../constants'; import { type FormState, createEmptyForm, formatInput, parseInput } from '../types'; import type { CrewWidgetConfigItem } from '@/types/response/crew/widgetConfig'; import { Checkbox } from '@/components/ui/checkbox'; type CrewListItem = { id: number; name: string }; /** 색상 입력 (color picker + hex text) */ function ColorInput({ value, onChange }: { value: string; onChange: (v: string) => void }) { return (