import { TextElement } from "../../types/elements"; import { NumericPropertyInput } from "../ui/NumericPropertyInput"; import { ColorPropertyInput } from "../ui/ColorPropertyInput"; interface TextPropertiesProps { element: TextElement; onChange: (elementId: string, property: string, value: unknown) => void; activeTab: { [key: string]: "fonctionnalites" | "personnalisation" | "positionnement"; }; setActiveTab: (tabs: { [key: string]: "fonctionnalites" | "personnalisation" | "positionnement"; }) => void; } export function TextProperties({ element, onChange, activeTab, setActiveTab, }: TextPropertiesProps) { const textCurrentTab = activeTab[element.id] || "fonctionnalites"; const setTextCurrentTab = ( tab: "fonctionnalites" | "personnalisation" | "positionnement", ) => { setActiveTab({ ...activeTab, [element.id]: tab }); }; return ( <> {/* Système d'onglets pour Text */}
{/* Onglet Fonctionnalités */} {textCurrentTab === "fonctionnalites" && ( <>