mirror of
https://github.com/unraid/api.git
synced 2026-01-05 16:09:49 -06:00
19 lines
468 B
TypeScript
19 lines
468 B
TypeScript
const useOpenFeedback = () => {
|
||
const open = (includeUnraidApiLogs: boolean) => {
|
||
console.debug('[useOpenFeedback.open]', { includeUnraidApiLogs });
|
||
try {
|
||
// eslint-disable-next-line no-undef
|
||
// @ts-ignore – `FeedbackButton` will be included in 6.10.4+ DefaultPageLayout
|
||
FeedbackButton();
|
||
} catch (error) {
|
||
console.error('[useOpenFeedback.open]', error);
|
||
}
|
||
}
|
||
|
||
return {
|
||
open,
|
||
};
|
||
};
|
||
|
||
export default useOpenFeedback;
|