import { useState } from "react"; import { ColorIndicator } from "./ColorIndicator"; import { Banner } from "./core/Banner"; import { Button } from "./core/Button"; import { ColorPickerWithThemeColors } from "./core/ColorPicker"; export function EnvironmentColorPicker({ color: defaultColor, onChange, }: { color: string | null; onChange: (color: string | null) => void; }) { const [color, setColor] = useState(defaultColor); return (
{ e.preventDefault(); onChange(color); }} > This color will be used to color the interface when this environment is active ); }