import { env } from "@/src/env.mjs"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/src/components/ui/select"; import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture"; import { Dialog, DialogBody, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/src/components/ui/dialog"; const regions = env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "STAGING" ? [ { name: "STAGING", hostname: "staging.langfuse.com", flag: "πͺπΊ", }, ] : env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV" ? [ { name: "DEV", hostname: null, flag: "π§", }, ] : [ { name: "US", hostname: "us.cloud.langfuse.com", flag: "πΊπΈ", }, { name: "EU", hostname: "cloud.langfuse.com", flag: "πͺπΊ", }, { name: "HIPAA", hostname: "hipaa.cloud.langfuse.com", flag: "βοΈ", }, ]; export function CloudRegionSwitch({ isSignUpPage, }: { isSignUpPage?: boolean; }) { const capture = usePostHogClientCapture(); if (env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === undefined) return null; const currentRegion = regions.find( (region) => region.name === env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION, ); return (
Demo project is not available in the HIPAA data region.
) : null}The Business Associate Agreement (BAA) is only effective on the Cloud Pro and Teams plans.{" "} Learn more about HIPAA compliance β