From 7c78247efac6c848d52ebe4eb100d6f30c4ef893 Mon Sep 17 00:00:00 2001 From: zyf722 <1124982772@qq.com> Date: Fri, 5 Apr 2024 22:53:02 +0800 Subject: [PATCH] feat: add quiz component for software testing --- src/components/Quiz/index.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/components/Quiz/index.tsx diff --git a/src/components/Quiz/index.tsx b/src/components/Quiz/index.tsx new file mode 100644 index 0000000..9e53d11 --- /dev/null +++ b/src/components/Quiz/index.tsx @@ -0,0 +1,19 @@ +import React from "react"; +import Heading from "@theme/Heading"; + +type QuizProp = { + children: React.ReactNode; + question: string; +}; + +export default function Quiz({ children, question }: QuizProp): JSX.Element { + return ( + + {question} +
+
答:
+
{children}
+
+
+ ); +}