import { ReactNode } from 'react'; import { InlineFormActions } from './InlineFormActions'; interface InlineAddItemProps { value: string; onChange: (value: string) => void; onSubmit: () => void; onCancel: () => void; isPending: boolean; placeholder?: string; rows?: number; extra?: ReactNode; submitColorClass?: string; className?: string; } export function InlineAddItem({ value, onChange, onSubmit, onCancel, isPending, placeholder, rows = 2, extra, submitColorClass, className = '', }: InlineAddItemProps) { return (