import { useAutoSave } from '../../../hooks/useAutoSave'; import styles from '../RightPanel.module.css'; interface Props { value: string; label: string; placeholder?: string; onSave: (value: string) => void; rows?: number; } export function AutoSaveTextArea({ value, label, placeholder, onSave, rows = 4 }: Props) { const [local, handleChange] = useAutoSave(value, onSave); return (