import {html} from 'htm/preact'; import {Component, VNode} from 'preact'; /** * Component properties for {@linkcode ConfirmButton}. */ export type ConfirmButtonProps = { attributes: Record; class: string; click: (event: MouseEvent) => unknown; confirmClass: string; confirmText: string; preventDefault: boolean; text: string; timeout: number; }; /** * Component state for {@linkcode ConfirmButton}. */ export type ConfirmButtonState = { timeoutHandle: number | undefined; }; /** * A {@linkcode https://developer.mozilla.org/docs/Web/HTML/Element/button `; } }