mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
feat(react/settings): port LLM settings
This commit is contained in:
15
apps/client/src/widgets/react/FormTextArea.tsx
Normal file
15
apps/client/src/widgets/react/FormTextArea.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
interface FormTextAreaProps {
|
||||
currentValue: string;
|
||||
onBlur?(newValue: string): void;
|
||||
rows: number;
|
||||
}
|
||||
export default function FormTextArea({ onBlur, rows, currentValue }: FormTextAreaProps) {
|
||||
return (
|
||||
<textarea
|
||||
rows={rows}
|
||||
onBlur={(e) => {
|
||||
onBlur?.(e.currentTarget.value);
|
||||
}}
|
||||
>{currentValue}</textarea>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user