Files
mue/src/components/modals/main/settings/SettingsItem.jsx
alexsparkes 84c1bc8df1 refactor(settings): Move to new style settings row
Comprised of:
- Row element
- Content (title and description)
- Action
2024-02-09 22:22:11 +00:00

23 lines
470 B
JavaScript

function Row(props) {
return (
<div className={props.final ? 'settingsRow settingsNoBorder' : 'settingsRow'}>
{props.children}
</div>
);
}
function Content(props) {
return (
<div className="content">
<span className="title">{props.title}</span>
<span className="subtitle">{props.subtitle}</span>
</div>
);
}
function Action(props) {
return <div className="action">{props.children}</div>;
}
export { Row, Content, Action };