import {html} from 'htm/preact';
import {Component, VNode} from 'preact';
/**
* Component properties for {@linkcode FeedbackButton}.
*/
export type FeedbackButtonProps = {
click: (event: MouseEvent) => unknown;
extraAttributes: Record;
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