import { Palette } from "./Palettes"; export interface PaletteSwatchProps { palette: Palette; } export const PaletteSwatch = (props: PaletteSwatchProps) => { const { palette } = props; return
{palette.name}
{palette.colors.slice(1).map((color, index) => )}
} interface PaletteColorProps { color: string; } const PaletteColor = (props: PaletteColorProps) =>