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'; import EditOutlinedIcon from '@material-ui/icons/EditOutlined'; export function Vierkant(props: { href?: string; width?: string; height?: string; style?: CSSProperties; children?: ReactNode; className?: string; id?: string; fullwidth?: boolean; }) { return {props.children} } export function Button(props: { text?: string; children?: ReactNode; style?: CSSProperties; href?: string; onclick?: (() => void); id?: string; }) { return { props.text ? {props.text} : undefined } { props.children } ; } export function IconLabelButton(props: { text: string; icon: ReactNode; onclick?: () => void; style?: CSSProperties; }) { return } export function Input(props: { label?: string; style?: CSSProperties; type?: string; id?: string; min?: number; max?: number; value?: string|number; dark?: boolean; autocomplete?: string; }) { return } export function SearchBar(props: { label?: string }) { return
} export class CheckBox extends Component<{ state?: boolean; style?: CSSProperties; id?: string; onclick?: (state: boolean) => void; }> { state = { on: this.props.state || false } public toggle = () => { this.setState({ on: !this.state.on }); this.props.onclick && this.props.onclick(!this.state.on); } render() { return
{ this.state.on ? : }
; } } export class ColorPicker extends Component<{ style?: CSSProperties; }> { state: { color: string; dark: boolean; } = { color: "#012345", dark: true } render() { return } }