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