/** * WordPress dependencies */ import { __unstableMotion as motion } from '@wordpress/components'; /** * Internal dependencies */ import { useStylesPreviewColors } from './preview-hooks'; interface HighlightedColorsProps { normalizedColorSwatchSize: number; ratio: number; } export default function HighlightedColors( { normalizedColorSwatchSize, ratio, }: HighlightedColorsProps ) { const { highlightedColors } = useStylesPreviewColors(); const scaledSwatchSize = normalizedColorSwatchSize * ratio; return highlightedColors.map( ( { slug, color }, index ) => ( ) ); }