mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-12 05:29:16 +00:00
50 lines
1.9 KiB
TypeScript
50 lines
1.9 KiB
TypeScript
import { Helmet } from "react-helmet";
|
|
import { useTranslation } from "react-i18next";
|
|
import { faArrowUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
|
import { PageHeader } from "@app/components/v2";
|
|
import { useOrganization } from "@app/context";
|
|
|
|
import { ShareSecretSection } from "./ShareSecretSection";
|
|
|
|
export const SecretSharingPage = () => {
|
|
const { t } = useTranslation();
|
|
const { isSubOrganization } = useOrganization();
|
|
return (
|
|
<>
|
|
<Helmet>
|
|
<title>{t("common.head-title", { title: t("approval.title") })}</title>
|
|
<link rel="icon" href="/infisical.ico" />
|
|
<meta property="og:image" content="/images/message.png" />
|
|
<meta property="og:title" content={String(t("approval.og-title"))} />
|
|
<meta name="og:description" content={String(t("approval.og-description"))} />
|
|
</Helmet>
|
|
<div className="h-full">
|
|
<div className="mx-auto h-full w-full max-w-8xl bg-bunker-800 text-white">
|
|
<PageHeader
|
|
scope={isSubOrganization ? "namespace" : "org"}
|
|
title="Secret Sharing"
|
|
description="Share secrets securely using a shareable link"
|
|
>
|
|
<a
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
href="https://infisical.com/docs/documentation/platform/secret-sharing"
|
|
>
|
|
<div className="flex w-max cursor-pointer items-center rounded-md border border-mineshaft-500 bg-mineshaft-600 px-4 py-2 text-mineshaft-200 duration-200 hover:border-primary/40 hover:bg-primary/10 hover:text-white">
|
|
Documentation{" "}
|
|
<FontAwesomeIcon
|
|
icon={faArrowUpRightFromSquare}
|
|
className="mb-[0.06rem] ml-1 text-xs"
|
|
/>
|
|
</div>
|
|
</a>
|
|
</PageHeader>
|
|
<ShareSecretSection />
|
|
</div>
|
|
</div>
|
|
</>
|
|
);
|
|
};
|