mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-20 22:17:52 +00:00
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
import { Helmet } from "react-helmet";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { ProjectPermissionCan } from "@app/components/permissions";
|
|
import { PageHeader } from "@app/components/v2";
|
|
import { ProjectPermissionSub } from "@app/context";
|
|
import { ProjectPermissionPamAccountActions } from "@app/context/ProjectPermissionContext/types";
|
|
|
|
import { PamResourcesSection } from "./components/PamResourcesSection";
|
|
|
|
export const PamResourcesPage = () => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<>
|
|
<Helmet>
|
|
<title>{t("common.head-title", { title: "PAM" })}</title>
|
|
</Helmet>
|
|
<ProjectPermissionCan
|
|
renderGuardBanner
|
|
I={ProjectPermissionPamAccountActions.Read}
|
|
a={ProjectPermissionSub.PamResources}
|
|
>
|
|
<div className="bg-bunker-800 h-full">
|
|
<div className="bg-bunker-800 container mx-auto flex flex-col justify-between text-white">
|
|
<div className="mx-auto mb-6 w-full max-w-7xl">
|
|
<PageHeader
|
|
title="Resources"
|
|
description="Manage resources such as servers, databases, and more."
|
|
/>
|
|
<PamResourcesSection />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ProjectPermissionCan>
|
|
</>
|
|
);
|
|
};
|