"use client";
import { FillBlank } from "./FillBlank";
import { Flashcard } from "./Flashcard";
import { Matching } from "./Matching";
import { MultipleChoice } from "./MultipleChoice";
import { Ordering } from "./Ordering";
import { ShortAnswer } from "./ShortAnswer";
import { TrueFalse } from "./TrueFalse";
import { t } from "@/lib/i18n";
import { NoHintsProvider, type ActivityComponentProps } from "./shared";
export type { ActivityComponentProps } from "./shared";
export { TYPE_META } from "./shared";
export { NotesTextProvider, useNotesText } from "./context";
/**
* Renders an activity from JSON based on its `type` field.
* Every activity type is a self-contained React component.
*/
export function ActivityRenderer(props: ActivityComponentProps) {
const { activity, noHints } = props;
const rendered = (() => {
switch (activity.type) {
case "flashcard":
return
{t("activity.unsupported", { json: JSON.stringify(never) })}
; } } })(); return