import React from 'react'; import PropTypes from 'prop-types'; import './SettingTile.scss'; import Text from '../../atoms/text/Text'; function SettingTile({ title, options, content }) { return (
{title}
{options !== null &&
{options}
}
{content !== null &&
{content}
}
); } SettingTile.defaultProps = { options: null, content: null, }; SettingTile.propTypes = { title: PropTypes.string.isRequired, options: PropTypes.node, content: PropTypes.node, }; export default SettingTile;