import './style.scss'; import classnames from 'classnames/dedupe'; import { Button } from '@wordpress/components'; import { Fragment, useState } from '@wordpress/element'; /** * Component Class * * @param props */ export default function CollapseControl(props) { const { children, options, initialOpen } = props; const [collapsed, setCollapsed] = useState(initialOpen); return (
{options.map((option) => { return (
{children(option)}
); })}
); }