{
if (!open) setPendingCancelId(null);
}}
>
{t("rooms.cancelBookingTitle")}
{t("rooms.cancelBookingDescription")}
{t("rooms.keepBooking")} {
if (pendingCancelId) cancel.mutate({ id: pendingCancelId });
}}
>
{cancel.isPending
? t("rooms.cancelling")
: t("rooms.confirmCancel")}
);
}
```
The booking mutation reports `booking_conflict` through `fail()`; the route
shows the localized conflict toast and rolls back its optimistic row. The cancel
mutation removes the booking optimistically and the query refresh confirms the
released slot. The mutation hook refetches action queries after success.
## Shell edits
`app/components/layout/Sidebar.tsx`: add `IconDoor` to the existing
`@tabler/icons-react` import, then add this inside `