diff --git a/src/routes.ts b/src/routes.ts index ed4a9a6..1b3dfa0 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -128,8 +128,15 @@ export const withCrossButtonRoutes = [ routes.client.subscription(), routes.client.paymentMethod(), ]; -export const hasCrossButton = (path: string) => - withCrossButtonRoutes.includes(path); +/** + * Checks if a given path has a cross button. + * @param {string} path - The path to check. + * @returns {boolean} - True if the path has a cross button, false otherwise. + */ +export const hasCrossButton = (path: string): boolean => { + // Check if the path is included in the array of routes with cross buttons + return withCrossButtonRoutes.includes(path); +}; export const withoutFooterRoutes = [ routes.client.didYouKnow(),