Draft: Clone

This commit is contained in:
Денис Катаев 2023-12-02 20:39:29 +00:00
parent 2898fe7960
commit 2b1b29566d

View File

@ -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(),