2021-07-28 18:45:52 +05:30
|
|
|
import React from 'react';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import './SettingTile.scss';
|
|
|
|
|
|
|
|
|
|
import Text from '../../atoms/text/Text';
|
|
|
|
|
|
|
|
|
|
function SettingTile({ title, options, content }) {
|
|
|
|
|
return (
|
|
|
|
|
<div className="setting-tile">
|
2022-01-10 20:33:40 +05:30
|
|
|
<div className="setting-tile__content">
|
2021-07-28 18:45:52 +05:30
|
|
|
<div className="setting-tile__title">
|
|
|
|
|
<Text variant="b1">{title}</Text>
|
|
|
|
|
</div>
|
2022-01-10 20:33:40 +05:30
|
|
|
{content}
|
2021-07-28 18:45:52 +05:30
|
|
|
</div>
|
2022-01-10 20:33:40 +05:30
|
|
|
{options !== null && <div className="setting-tile__options">{options}</div>}
|
2021-07-28 18:45:52 +05:30
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SettingTile.defaultProps = {
|
|
|
|
|
options: null,
|
|
|
|
|
content: null,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
SettingTile.propTypes = {
|
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
|
options: PropTypes.node,
|
|
|
|
|
content: PropTypes.node,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default SettingTile;
|