import classNames from "classnames"; import { useState } from "react"; import { FiChevronDown } from "react-icons/fi"; import { STYLES } from "@/utils"; export const Styles = ({ value, onChange, }: { value: string; onChange: (value: string) => void; }) => { const [viewAll, setViewAll] = useState(false); return (

Select a style

{STYLES.slice(viewAll ? 0 : 0, viewAll ? STYLES.length : 9).map( (style) => (
onChange(style.value)} > {style.label}
) )}

setViewAll(!viewAll)} > View all

); };