mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
"use client";
|
|
|
|
import { Alert, AlertDescription } from "@/components/ui/alert";
|
|
import { useOrgContext } from "@app/hooks/useOrgContext";
|
|
import {
|
|
InfoSection,
|
|
InfoSectionContent,
|
|
InfoSections,
|
|
InfoSectionTitle
|
|
} from "@app/components/InfoSection";
|
|
import { useTranslations } from "next-intl";
|
|
|
|
type OrgInfoCardProps = {};
|
|
|
|
export default function OrgInfoCard({}: OrgInfoCardProps) {
|
|
const { org } = useOrgContext();
|
|
const t = useTranslations();
|
|
|
|
return (
|
|
<Alert>
|
|
<AlertDescription>
|
|
<InfoSections cols={3}>
|
|
<InfoSection>
|
|
<InfoSectionTitle>{t("name")}</InfoSectionTitle>
|
|
<InfoSectionContent>{org.org.name}</InfoSectionContent>
|
|
</InfoSection>
|
|
<InfoSection>
|
|
<InfoSectionTitle>{t("orgId")}</InfoSectionTitle>
|
|
<InfoSectionContent>{org.org.orgId}</InfoSectionContent>
|
|
</InfoSection>
|
|
<InfoSection>
|
|
<InfoSectionTitle>{t("subnet")}</InfoSectionTitle>
|
|
<InfoSectionContent>
|
|
{org.org.subnet || t("none")}
|
|
</InfoSectionContent>
|
|
</InfoSection>
|
|
</InfoSections>
|
|
</AlertDescription>
|
|
</Alert>
|
|
);
|
|
}
|
|
|