"use client" import { useTranslations } from "next-intl" import { AlertCircle } from "lucide-react" import { Card } from "@/components/ui/card" import { BrandHeader } from "@/components/ui/brand-header" import { FloatingLanguageSwitcher } from "@/components/layout/floating-language-switcher" interface SharedErrorPageProps { titleKey: string subtitleKey: string errorKey: string descriptionKey: string ctaTextKey: string } export function SharedErrorPage({ titleKey, subtitleKey, errorKey, descriptionKey, ctaTextKey, }: SharedErrorPageProps) { const tShared = useTranslations("emails.shared") const resolvedTitle = tShared(titleKey) const resolvedSubtitle = tShared(subtitleKey) const resolvedError = tShared(errorKey) const resolvedDescription = tShared(descriptionKey) const resolvedCtaText = tShared(ctaTextKey) return (

{resolvedError}

{resolvedDescription}

) }