2023-05-19 23:14:55 +02:00
|
|
|
import React from "@modules/react";
|
2019-06-30 05:09:48 +02:00
|
|
|
|
2023-05-20 00:37:21 +02:00
|
|
|
|
2023-03-07 01:17:28 +01:00
|
|
|
export default function SettingItem({id, name, note, inline, children}) {
|
|
|
|
return <div className={"bd-setting-item" + (inline ? " inline" : "")}>
|
|
|
|
<div className={"bd-setting-header"}>
|
|
|
|
<label htmlFor={id} className={"bd-setting-title"}>{name}</label>
|
|
|
|
{inline && children}
|
|
|
|
</div>
|
|
|
|
<div className={"bd-setting-note"}>{note}</div>
|
|
|
|
{!inline && children}
|
|
|
|
<div className={"bd-setting-divider"} />
|
|
|
|
</div>;
|
2019-06-30 05:09:48 +02:00
|
|
|
}
|