mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 12:28:56 +00:00
39 lines
1.3 KiB
TypeScript
39 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 { ProjectPermissionPamSessionActions } from "@app/context/ProjectPermissionContext/types";
|
|
|
|
import { PamSessionSection } from "./components/PamSessionSection";
|
|
|
|
export const PamSessionPage = () => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<>
|
|
<Helmet>
|
|
<title>{t("common.head-title", { title: "PAM" })}</title>
|
|
</Helmet>
|
|
<ProjectPermissionCan
|
|
renderGuardBanner
|
|
I={ProjectPermissionPamSessionActions.Read}
|
|
a={ProjectPermissionSub.PamSessions}
|
|
>
|
|
<div className="h-full bg-bunker-800">
|
|
<div className="mx-auto flex flex-col justify-between bg-bunker-800 text-white">
|
|
<div className="mx-auto mb-6 w-full max-w-8xl">
|
|
<PageHeader
|
|
scope="project"
|
|
title="Sessions"
|
|
description="Filter and search through account sessions."
|
|
/>
|
|
<PamSessionSection />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ProjectPermissionCan>
|
|
</>
|
|
);
|
|
};
|