errors hooks
The components already use these hooks. Reach for them when you build your own UI on the same data. Open a hook for its options and what it returns.
Other hooks
useErrorMessagesReturns a resolve(code) that maps a backend error code to a localized message from the Errors next-intl namespace, with a mandatory fallback to Errors.unknown for codes the client doesn't recognize yet (a newer backend code).
import { useErrorMessages } from "@evolve-storefront/errors/use-error-messages";The server message is never used for display — only the code.
function useErrorMessages(): ResolveErrorCodeReturns ResolveErrorCode

