import { Grid } from "@mui/material"; // Importing necessary components from Material-UI import React, { ReactNode } from "react"; interface ColorPickerProps { children: ReactNode | ReactNode[]; spacing?: number; } export const ColorPicker: React.FC = ({ children, spacing, }) => { const childrenArray = React.Children.toArray(children); return ( {childrenArray.map((child, index) => ( {child} ))} ); };