import { ReactNode, useEffect, useState } from 'react'; import { v4 as uuid } from 'uuid'; import CheckBoxIcon from '@material-ui/icons/CheckBox'; import CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank'; import EditOutlinedIcon from '@material-ui/icons/EditOutlined'; import SearchIcon from '@material-ui/icons/Search'; export function Vierkant(props: { href?: string; width?: string; height?: string; children?: ReactNode; className?: string; id?: string; onclick?: () => void; }) { return {props.children} ; } export function Button(props: { text?: string; children?: ReactNode; href?: string; className?: string; onclick?: () => void; id?: string; }) { return {props.text ? {props.text} : undefined} {props.children} ; } export function IconLabelButton(props: { text: string; icon: ReactNode; onclick?: () => void; href?: string; className?: string; }) { return ; } export function Input(props: { label?: string; type?: string; id?: string; min?: number; max?: number; value?: string | number; dark?: boolean; autocomplete?: string; autofocus?: boolean; className?: string; onChange?: () => void; }) { return ; } export function SearchBar(props: { label?: string; search?: (query: string) => void; }) { var id = uuid(); var getQuery = () => (document.getElementById(id).children[0] as HTMLInputElement).value; return
props.search && props.search(getQuery())} />
; } export function CheckBox(props: { state?: boolean; id?: string; onclick?: (state: boolean) => void; }) { return
props.onclick && props.onclick(!props.state)} id={props.id} className={'checkbox dispinbl ' + (props.state ? 'on' : 'off')} > {props.state ? : }
; } export function ColorPicker() { var [dark, setDark] = useState(false); var [color, setColor] = useState('#012345'); return ; } export function Tuitje() { return ; } export function Bubble(props: { children?: ReactNode; className?: string; }) { return {props.children} ; }