import { useState } from "react"; import type { OrderDetail } from "@orderops/shared"; interface OrderNotesProps { order: OrderDetail; onSave: (notes: string) => Promise; } export function OrderNotes({ order, onSave }: OrderNotesProps) { const [notes, setNotes] = useState(order.notes ?? ""); return (

Internal notes

{ event.preventDefault(); await onSave(notes); }} >