"use client";
import { useI18n } from "@/translations/provider";
import InformationSheet from "./information-sheet";
import SwipeButton from "./swipe-button";
export type TestCompletedSheetProps = {
isOpen: boolean;
onClose: () => void;
title?: string;
closeOnOutside?: boolean;
};
export function TestCompletedSheet({
isOpen,
onClose,
title,
closeOnOutside = true,
}: TestCompletedSheetProps) {
const { dictionary: t, locale } = useI18n();
if (!isOpen) {
return null;
}
const isFa = locale === "fa";
const sheetTitle =
title ||
(t as Record