import { Component, CSSProperties, ReactNode } from "react"; import SearchIcon from '@material-ui/icons/Search'; import CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank'; import CheckBoxIcon from '@material-ui/icons/CheckBox'; export function Vierkant(props: { href?: string; width?: string; height?: string; style?: CSSProperties; children?: ReactNode; className?: string; }) { return {props.children} } export function Button(props: { text?: string; children?: ReactNode; style?: CSSProperties; onclick?: (() => void); }) { return
{ props.text ? {props.text} : undefined } { props.children }
; } export function Input(props: { label?: string, style?: CSSProperties, type?: string }) { return } export function SearchBar(props: { label?: string }) { return
} export class CheckBox extends Component<{ state?: boolean, style?: CSSProperties }> { state = { on: this.props.state || false } public toggle = () => this.setState({ on: !this.state.on }) render() { return
{ this.state.on ? : }
; } }