This commit is contained in:
everythingonblack
2025-05-30 22:47:29 +07:00
parent 6f9e68f431
commit 8b384b690a
8 changed files with 288 additions and 55 deletions

18
src/DiscussedTopics.js Normal file
View File

@@ -0,0 +1,18 @@
// DiscussedTopics.js
import React from 'react';
const DiscussedTopics = ({ topics }) => {
return (
<div>
<h2>Topik yang Sering Ditanyakan</h2>
<ul>
{topics.map((topic, idx) => (
<li key={idx}><strong>{topic.topic}</strong> - {topic.question_count} pertanyaan</li>
))}
</ul>
</div>
);
};
export default DiscussedTopics;