import React from 'react'; import QuestionGroups from './QuestionGroups.json'; function DifficultyLabel({difficulty}) { return ( {difficulty} ); } export default function QuestionList() { return (
{Object.entries(QuestionGroups).map( ([sectionTitle, questions], index) => (

Week {index + 5}

{questions.map((question) => ( ))}
Problem Difficulty Duration
{question.title} {question.duration} mins
), )}
); }