/** * @file Group background color section */ import * as React from "react"; import { Input } from "../../elements/Input"; import { InspectorLabel } from "../../inspector/parts/InspectorLabel"; import { InspectorButton } from "../../inspector/parts/InspectorButton"; import { useI18n } from "../../../i18n/context"; import styles from "./GroupBackgroundSection.module.css"; type GroupBackgroundSectionProps = { nodeId: string; backgroundColor: string; onBackgroundChange: (color: string) => void; onReset: () => void; }; /** * Section for group background color settings */ export function GroupBackgroundSection({ nodeId, backgroundColor, onBackgroundChange, onReset, }: GroupBackgroundSectionProps): React.ReactElement { const { t } = useI18n(); const handleColorChange = React.useEffectEvent((e: React.ChangeEvent) => { onBackgroundChange(e.target.value); }); const handleReset = React.useEffectEvent(() => { onReset(); }); return (
{t("fieldBackground") || "Background"} Reset
); }