| 1 |
import BoxContent from "./BoxContent/BoxContent"; |
| 2 |
import ToggleControl from "./ToggleControl"; |
| 3 |
|
| 4 |
function BooleanSetting({ title, content, name, active, onStatusChange }) { |
| 5 |
return ( |
| 6 |
<div className="tableberg-boolean-settings tableberg-settings-card"> |
| 7 |
<BoxContent title={title} content={content}> |
| 8 |
<ToggleControl |
| 9 |
status={active} |
| 10 |
name={name} |
| 11 |
onStatusChange={onStatusChange} |
| 12 |
/> |
| 13 |
</BoxContent> |
| 14 |
</div> |
| 15 |
); |
| 16 |
} |
| 17 |
export default BooleanSetting; |
| 18 |
|