import useProperty from '../utils/useProperty';
export default (props) => {
    return useProperty(props, 'isOpen', true, {
        onChange: (isOpen) => {
            if (!isOpen && props.onDismiss) {
                props.onDismiss();
            }
        },
    });
};
