import { BarChart3, ChevronDown, Image, Palette, Sliders, TrendingUp } from "lucide-react" import { useState } from "react" import { useTranslation } from "react-i18next" import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible" import { ColorGradingProvider } from "../services/color-grading-provider" import { ColorWheelsSection } from "./color-wheels/color-wheels-section" import { ColorGradingControls } from "./controls/color-grading-controls" import { CurvesSection } from "./curves/curves-section" import { HSLSection } from "./hsl/hsl-section" import { LUTSection } from "./lut/lut-section" import { ScopesSection } from "./scopes/scopes-section" export interface ColorSettingsProps { className?: string } export function ColorSettings({ className }: ColorSettingsProps) { const { t } = useTranslation() // Состояние открытых секций (по умолчанию первичная коррекция открыта) const [openSections, setOpenSections] = useState({ colorWheels: true, curves: false, hsl: false, lut: false, scopes: false, }) const toggleSection = (section: keyof typeof openSections) => { setOpenSections((prev) => ({ ...prev, [section]: !prev[section], })) } return (
{/* Прокручиваемое содержимое */}
{/* 1. ОСНОВНЫЕ НАСТРОЙКИ - Color Wheels */} toggleSection("colorWheels")}>

{t("colorGrading.primaryCorrection", "Primary Color Correction")}

{/* 2. КРИВЫЕ */} toggleSection("curves")}>

{t("colorGrading.curvesSection", "Curves")}

{/* 3. HSL КОРРЕКЦИЯ */} toggleSection("hsl")}>

{t("colorGrading.hslCorrection", "HSL Correction")}

{/* 4. LUT */} toggleSection("lut")}>

{t("colorGrading.lutSection", "LUT")}

{/* 5. SCOPES */} toggleSection("scopes")}>

{t("colorGrading.scopesSection", "Scopes")}

{/* Нижние кнопки управления */}
) }