import { PageProps } from "../validations/translations/translation"; // Language dictionary for internationalization const languageDictionary = { en: { title: "Unauthorized Access", message1: "You do not have permission to access this page.", message2: "Please contact the administrator.", footer: `© ${new Date().getFullYear()} My Application`, }, tr: { title: "Yetkisiz Erişim", message1: "Bu sayfaya erişim izniniz yok.", message2: "Lütfen yönetici ile iletişime geçin.", footer: `© ${new Date().getFullYear()} Uygulamam`, }, }; export const UnAuthorizedPage: React.FC = ({ lang = "en", queryParams, }) => { // Use the language dictionary based on the lang prop, defaulting to English const t = languageDictionary[lang as keyof typeof languageDictionary] || languageDictionary.en; return ( <>

{t.title}

{t.message1}

{t.message2}

); };