import {Card, CardContent, CardDescription, CardHeader, CardTitle} from "@/components/ui/card"; import {Button} from "@/components/ui/button"; import {Download} from "lucide-react"; import {getFileUrlPresignedLocal, getFileUrlPreSignedS3Action} from "@/features/upload/private/upload.action"; import {SafeActionResult} from "next-safe-action"; import {ZodString} from "zod"; import {ServerActionResult} from "@/types/action-type"; import {toast} from "sonner"; export type AdminSettingsTabProps = {}; export const AdminSettingsTab = (props: AdminSettingsTabProps) => { const handleDownloadKey = async () => { let url: string = ""; const data = await getFileUrlPresignedLocal({dir: "private/keys/", fileName: "server_public.pem"}) if (data?.data?.success) { url = data.data.value ?? ""; } else { // @ts-ignore const errorMessage = data?.data?.actionError?.message || "Failed to get file!"; toast.error(errorMessage); } window.open(url, "_self"); }; return (
Instance settings Manage portabase settings

Download Public Key

Used for encrypting communications with this instance.

); };