export function getErrorMessage(error: any, fallback: string) { return error?.data?.statusMessage || error?.message || fallback }