Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

499 B
Raw Blame
import { createFileRoute } from "@tanstack/react-router";

import { useServerConfig } from "@app/context";

import { NotFoundPage } from "../NotFoundPage/NotFoundPage";
import { ShareSecretPage } from "./ShareSecretPage";

const ShareSecretRoute = () => {
  const { config } = useServerConfig();

  if (config.isPublicSecretSharingDisabled) {
    return <NotFoundPage />;
  }

  return <ShareSecretPage />;
};

export const Route = createFileRoute("/shared/new")({
  component: ShareSecretRoute
});