"use client"; import { SectionEditor } from "../_components/SectionEditor"; import { InputField } from "../_components/FormField"; interface HeroData { headline: string; subheadline: string; ctaText: string; ctaHref: string; } export default function HeroEditorPage() { return ( sectionKey="hero" title="Главный экран"> {(data, update) => ( <> update({ ...data, headline: v })} /> update({ ...data, subheadline: v })} /> update({ ...data, ctaText: v })} /> update({ ...data, ctaHref: v })} type="url" /> )} ); }