/** * External dependencies */ import { useState } from '@wordpress/element'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import { Icon, chevronUp, chevronDown } from '@woocommerce/icons'; /** * Internal dependencies */ import './style.scss'; const Panel = ( { children, className, initialOpen = false, hasBorder = false, title, titleTag: TitleTag = 'div', } ) => { const [ isOpen, setIsOpen ] = useState( initialOpen ); return (
); }; Panel.propTypes = { className: PropTypes.string, hasBorder: PropTypes.bool, initialOpen: PropTypes.bool, title: PropTypes.node, titleTag: PropTypes.string, }; export default Panel;