import { Menu } from "@nutui/nutui-react-taro"; import styles from "./index.module.scss"; import { useState } from "react"; interface IProps { options: { text: string; value: string }[]; value: string; onChange: (value: string) => void; wrapperClassName?: string; itemClassName?: string; } const MenuComponent = (props: IProps) => { const { options, value, onChange, wrapperClassName, itemClassName } = props; const [isChange, setIsChange] = useState(false); const handleChange = (value: string) => { setIsChange(true); onChange && onChange(value); }; return ( ); }; export default MenuComponent;