import {html} from 'htm/preact'; import {Component, VNode} from 'preact'; /** * Component properties for {@linkcode FeedbackButton}. */ export type FeedbackButtonProps = { attributes: Record; click: (event: MouseEvent) => unknown; feedbackText: string; text: string; timeout: number; }; /** * Component state for {@linkcode FeedbackButton}. */ export type FeedbackButtonState = { currentText: string; timeoutHandle: number | undefined; }; /** * A {@linkcode https://developer.mozilla.org/docs/Web/HTML/Element/button `; } }