mirror of
https://github.com/mue/mue.git
synced 2026-07-18 06:24:17 +02:00
refactor: settings tabs, improvements to logic + readability
Co-authored-by: David Ralph <me@davidcralph.co.uk>
This commit is contained in:
18
src/components/modals/main/settings/Section.jsx
Normal file
18
src/components/modals/main/settings/Section.jsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { MdOutlineKeyboardArrowRight } from 'react-icons/md';
|
||||
|
||||
export default function Section({ title, subtitle, icon, onClick }) {
|
||||
return (
|
||||
<div className="moreSettings" onClick={onClick}>
|
||||
<div className="left">
|
||||
{icon}
|
||||
<div className="content">
|
||||
<span className="title">{title}</span>
|
||||
<span className="subtitle">{subtitle}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="action">
|
||||
<MdOutlineKeyboardArrowRight />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user