= (props: ColorOptionProps) => {
+ const { color, currentColor, setCurrentColor } = props;
+
+ return (
+ setCurrentColor(color)}
+ >
+ {color}
+
+ );
+};
+
+interface ColorConfigProps {
+ color: string;
+ setColor: (newColor: string) => void;
+}
+
+const ColorConfig: FC = (props: ColorConfigProps) => {
+ const { color, setColor } = props;
+ return (
+
+
Color: {color}
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+interface GridConfigProps {
+ color: string;
+ setColor: (newColor: string) => void;
+}
+
+const GridConfig: FC = (props: GridConfigProps) => {
+ const { color, setColor } = props;
+ return (
+
+
+
+ );
+};
+
+export default GridConfig;