feat(react): port sort child notes

This commit is contained in:
Elian Doran
2025-08-03 21:18:18 +03:00
parent 164feaa3ec
commit bca397e3e4
13 changed files with 190 additions and 121 deletions

View File

@@ -0,0 +1,25 @@
interface FormTextBoxProps {
name: string;
label: string;
currentValue?: string;
className?: string;
description?: string;
onChange?(newValue: string): void;
}
export default function FormTextBox({ name, label, description, className, currentValue, onChange }: FormTextBoxProps) {
return (
<div className={className}>
<label>
{label}
<input
type="text"
className="form-control"
name={name}
value={currentValue}
onInput={e => onChange?.(e.currentTarget.value)} />
{description && <small className="form-text text-muted">{description}</small>}
</label>
</div>
);
}