diff --git a/frontend/src/components/QuestionMedia.tsx b/frontend/src/components/QuestionMedia.tsx
new file mode 100644
index 0000000..7d7693b
--- /dev/null
+++ b/frontend/src/components/QuestionMedia.tsx
@@ -0,0 +1,53 @@
+import DOMPurify from 'dompurify'
+import { highlightCode } from '../utils/latex'
+import type { Question } from '../types'
+
+interface Props {
+ q: Question
+}
+
+export default function QuestionMedia({ q }: Props) {
+ return (
+ <>
+ {q.image && (
+
+ {q.image.caption && (
+
| {h} | )}
|---|
| {cell} | )}