import { themeStyle } from '@joplin/lib/theme'; import * as React from 'react'; const ReactToggleButton = require('react-toggle-button'); const Color = require('color'); interface Props { value: boolean; // eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied onToggle: Function; themeId: number; } export default function(props: Props) { const theme = themeStyle(props.themeId); return ( ); }