import { h, Component } from 'preact'; import * as style from './style.css'; import 'add-css:./style.css'; import { UncheckedIcon, CheckedIcon } from '../../../icons'; interface Props extends preact.JSX.HTMLAttributes {} interface State {} export default class Checkbox extends Component { render(props: Props) { return (
{props.checked ? ( props.disabled ? ( ) : ( ) ) : ( )} {/* @ts-ignore - TS bug https://github.com/microsoft/TypeScript/issues/16019 */}
); } }