import { useDisclosure } from 'hooks' import { Icons } from 'components' const Specification = props => { //? Props const { specification } = props //? Assets const [isShowSpec, showSpecHandlers] = useDisclosure() let renderSpecification = isShowSpec ? specification : specification.slice(0, 7) //? Render(s) return (

规格

    {renderSpecification.map((item, i) => { if (!item.value) return else return (
  • {item.title}
  • ) })}
{specification.length > 7 && ( )}
) } export default Specification