Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
import { useOrganization, useOrgPermission } from "@app/context";
import { OrgMembershipRole } from "@app/helpers/roles";
import { OrgDeleteSection } from "../OrgDeleteSection";
import { OrgIncidentContactsSection } from "../OrgIncidentContactsSection";
import { OrgNameChangeSection, SubOrgNameChangeSection } from "../OrgNameChangeSection";
export const OrgGeneralTab = () => {
const { hasOrgRole } = useOrgPermission();
const { isSubOrganization } = useOrganization();
return (
<div className="flex flex-col gap-4">
{isSubOrganization ? <SubOrgNameChangeSection /> : <OrgNameChangeSection />}
{!isSubOrganization && <OrgIncidentContactsSection />}
{hasOrgRole(OrgMembershipRole.Admin) && <OrgDeleteSection />}
</div>
);
};