"use client"; import { useTranslation } from "react-i18next"; export function SessionDeleteDescription({ isPrimary, isOnlySession, structured = false, }: { isPrimary: boolean; isOnlySession: boolean; structured?: boolean; }) { const { t } = useTranslation(); const primaryNotice = isPrimary && !isOnlySession; if (structured) { return ( <>
{t("task:thisWillPermanentlyDeleteTheConversation")}
{primaryNotice &&{t("task:thisIsThePrimarySessionAnother")}
} {isOnlySession &&{t("task:thisIsTheOnlySessionFor")}
} > ); } return ( <> {t("task:thisWillPermanentlyDeleteTheConversation")} {primaryNotice && ( {t("task:thisIsThePrimarySessionAnother")} )} {isOnlySession && ( {t("task:thisIsTheOnlySessionFor")} )} > ); }