Lifting state upintermediate
When two components must always agree, neither of them can own the value — it moves to the lowest component containing both, and comes back down as props.
Each card keeps its own copy of the status, so the kitchen never finds out an order moved, and "delivered" wraps round to "pending". Move the state up, give the card a typed onAdvance callback, stop at delivered, and type the search box’s change event.
A typed callback, a flow that stops at delivered, immutable updates, state only in the parent, and a typed event.
Published in full, before you start — every point is one of these and there is nothing else. Each one runs your code; it is not a search for keywords.
When two components must always agree, neither of them can own the value — it moves to the lowest component containing both, and comes back down as props.
A discriminated union makes impossible states impossible: one status field the compiler forces you to handle, instead of three booleans that can contradict each other.
A type is a note to your future self that the compiler checks — annotating what goes in and what comes out is where most of the value is, before any advanced feature.