import React, { FC } from "react"; import { MDBBtn, MDBRow, MDBCol, MDBTooltip, MDBIcon } from "mdbreact"; interface Props { id: string; text: string; tooltip: string; toggle: () => void; disabled?: boolean; checked: boolean; style?: any; } const Toggle: FC = ({ id, text, tooltip, toggle, disabled = false, checked, style }) => ( {text} {tooltip}
); const styles = { paddingRow: { paddingLeft: "10px", paddingTop: "6px" }, info: { backgroundColor: "transparent !important", color: "lightgray", boxShadow: "none", fontSize: "large", border: "none", outline: "none" }, noPadding: { padding: 0 }, marginText: { marginTop: "6px", color: "black", fontSize: "16px" } }; export default Toggle;