import * as React from 'react' import { InputLabel, Switch, Theme, Tooltip } from '@mui/material' import { withStyles } from '@mui/styles' const sha1 = require('sha1') function BooleanSwitch(props: { title: string; value: boolean; tooltip: string; action: () => void; classes: any }) { const { tooltip, value, action, title, classes } = props const clickHandler = (e: React.MouseEvent) => { e.stopPropagation() e.preventDefault() action() } return (
{title}
) } const styles = (theme: Theme) => ({ label: { flex: '1', paddingTop: theme.spacing(1.5), }, }) export default withStyles(styles)(BooleanSwitch)