import { Link } from "react-router"; import { useTranslation } from "react-i18next"; import { ErrorPage } from "~/components/ui/errors/ErrorPage"; export interface PageFeatureDisabledProps { featureLabel?: string; dashboardPath?: string; } export default function PageFeatureDisabled({ featureLabel, dashboardPath = "/dashboard" }: PageFeatureDisabledProps) { const { t } = useTranslation(); const featureCopy = featureLabel ? t("access.featureDisabled.namedDescription", { feature: featureLabel }) : t("access.featureDisabled.description"); return ( {t("access.featureDisabled.backToDashboard")} } /> ); }