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

Select a mood

{MOODS.slice(viewAll ? 0 : 0, viewAll ? MOODS.length : 12).map( (style) => { return (
onChange(style.value)} > {style.label}

{style.emoji}

); } )}

setViewAll(!viewAll)} > View all

); };