import { AllI18nKeys, Localization } from "@Component/Localization/Localization"; import { Theme } from "@Component/Theme/Theme"; import { Icon } from "@fluentui/react"; import { Component, ReactNode } from "react"; import "./TogglesInput.scss"; interface ITogglesInputProps { keyI18n: AllI18nKeys; infoI18n?: AllI18nKeys; value?: boolean; disable?: boolean; onIconName?: string; offIconName?: string; valueChange?: (value: boolean) => any; } class TogglesInput extends Component { public render(): ReactNode { return
{ if (this.props.disable) { return; } if (this.props.valueChange) { this.props.valueChange(!this.props.value); } })} >
} } export { TogglesInput };