import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '../Icon/Icon';
function LayoutPreset({
onSelection,
title,
icon,
commandOptions,
classNames: classNameProps,
disabled,
}) {
return (
{
onSelection(commandOptions);
}}
>
{title &&
{title}
}
);
}
LayoutPreset.defaultProps = {
onSelection: () => {},
};
LayoutPreset.propTypes = {
onSelection: PropTypes.func.isRequired,
title: PropTypes.string,
icon: PropTypes.string.isRequired,
commandOptions: PropTypes.object.isRequired,
classNames: PropTypes.string,
disabled: PropTypes.bool,
};
export default LayoutPreset;