Files
kandev/apps/web/components/task/session-delete-description.tsx
T
2026-08-22 21:02:20 +00:00

25 lines
609 B
TypeScript

"use client";
import { useTranslation } from "react-i18next";
export function SessionDeleteDescription({
isPrimary,
isOnlySession,
}: {
isPrimary: boolean;
isOnlySession: boolean;
}) {
const { t } = useTranslation();
return (
<>
<span>{t("task:thisWillPermanentlyDeleteTheConversation")}</span>
{isPrimary && !isOnlySession && (
<span className="mt-2 block font-medium">{t("task:thisIsThePrimarySessionAnother")}</span>
)}
{isOnlySession && (
<span className="mt-2 block font-medium">{t("task:thisIsTheOnlySessionFor")}</span>
)}
</>
);
}