import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { MatchSentenceExerciseOption } from "@/interfaces/exam"; import { MdVisibilityOff } from "react-icons/md"; interface Props { showReference: boolean; selectedReference: string | null; options: MatchSentenceExerciseOption[]; headings: boolean; setShowReference: React.Dispatch>; } const ReferenceViewer: React.FC = ({ showReference, selectedReference, options, setShowReference, headings = true}) => (

{headings ? "Reference Paragraphs" : "Authors"}

{options.map((option) => ( {headings ? "Paragraph" : "Author" } {option.id}

{option.sentence}

))}
); export default ReferenceViewer;