import { ReactNode } from 'react'; interface InlineEditorProps { value: string; onChange: (value: string) => void; onSave: () => void; onCancel: () => void; isPending: boolean; placeholder?: string; rows?: number; submitLabel?: string; footer?: ReactNode; } export function InlineEditor({ value, onChange, onSave, onCancel, isPending, placeholder, rows = 2, submitLabel = 'Enregistrer', footer, }: InlineEditorProps) { return (