mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-19 06:55:11 +00:00
16 lines
336 B
JavaScript
16 lines
336 B
JavaScript
import { options } from 'preact';
|
|
import { initDevTools } from './devtools';
|
|
|
|
initDevTools();
|
|
|
|
/**
|
|
* Display a custom label for a custom hook for the devtools panel
|
|
* @type {<T>(value: T, name: string) => T}
|
|
*/
|
|
export function addHookName(value, name) {
|
|
if (options._addHookName) {
|
|
options._addHookName(name);
|
|
}
|
|
return value;
|
|
}
|