mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 00:17:46 +00:00
24 lines
601 B
TypeScript
24 lines
601 B
TypeScript
import { ContentLoader } from "@app/components/v2";
|
|
import { useProject } from "@app/context";
|
|
import { useListPamAccounts } from "@app/hooks/api/pam";
|
|
|
|
import { PamAccountsTable } from "./PamAccountsTable";
|
|
|
|
export const PamAccountsSection = () => {
|
|
const { currentProject } = useProject();
|
|
|
|
const { data, isPending } = useListPamAccounts(currentProject.id, {
|
|
refetchInterval: 30000
|
|
});
|
|
|
|
if (isPending) return <ContentLoader />;
|
|
|
|
return (
|
|
<PamAccountsTable
|
|
projectId={currentProject.id}
|
|
accounts={data?.accounts || []}
|
|
folders={data?.folders || []}
|
|
/>
|
|
);
|
|
};
|