feat(react/settings): basic hook to read Trilium option

This commit is contained in:
Elian Doran
2025-08-14 17:36:11 +03:00
parent 8ff108db9e
commit fbc1af56ed
6 changed files with 67 additions and 29 deletions

View File

@@ -1,9 +1,11 @@
import type { ComponentChildren } from "preact";
interface FormRadioProps {
name: string;
currentValue?: string;
values: {
value: string;
label: string;
label: string | ComponentChildren;
}[];
onChange(newValue: string): void;
}