"use client"; import { TextInput } from "@/components/ui/TextInput/TextInput"; import type { CouponScreenDefinition } from "@/lib/funnel/types"; import type { BuilderScreen } from "@/lib/admin/builder/types"; interface CouponScreenConfigProps { screen: BuilderScreen & { template: "coupon" }; onUpdate: (updates: Partial) => void; } export function CouponScreenConfig({ screen, onUpdate }: CouponScreenConfigProps) { const couponScreen = screen as CouponScreenDefinition & { position: { x: number; y: number } }; const handleCouponUpdate = ( field: T, value: CouponScreenDefinition["coupon"][T] ) => { onUpdate({ coupon: { ...couponScreen.coupon, [field]: value, }, }); }; return (

Настройки оффера

Промокод

Сообщение об успехе

onUpdate({ copiedMessage: event.target.value || undefined })} />
); }