components stablized

This commit is contained in:
2025-04-30 00:44:13 +03:00
parent 0052c92974
commit f2cc7a69b5
81 changed files with 3159 additions and 2299 deletions

View File

@@ -0,0 +1,10 @@
import { PageProps } from "../validations/translations/translation";
import { UnAuthorizedPage } from "./unauthorizedpage";
import menuPages from "./index";
export function retrievePageByUrl(url: string): React.FC<PageProps> {
if (url in menuPages) {
return menuPages[url as keyof typeof menuPages];
}
return UnAuthorizedPage;
}