import { useState } from "react"; import { FaTasks, FaRegListAlt } from "react-icons/fa"; import { FaPlus } from "react-icons/fa6"; import { TbChecklist } from "react-icons/tb"; export function TaskDetailModal({ title, description, tags, difficulty, challenge, importance, taskId }) { const [isChallengeChecked, setChallengeChecked] = useState(challenge); const [isImportantChecked, setImportantChecked] = useState(importance); const [currentDifficulty, setCurrentDifficulty] = useState(difficulty); // console.log(currentDifficulty); // console.log(isChallengeChecked); // console.log(isImportantChecked); const handleChallengeChange = () => { setChallengeChecked(!isChallengeChecked); }; const handleImportantChange = () => { setImportantChecked(!isImportantChecked); }; const handleDifficultyChange = (event) => { setCurrentDifficulty(parseInt(event.target.value, 10)); }; return (
{/* Title */}

{} {title}

{title}

{/* Tags */}
{/* Description */}

Description

{/* Difficulty, Challenge, and Importance */}
Easy Normal Hard Very Hard Devil
{/* Challenge Checkbox */}
{/* Important Checkbox */}
{/* Subtask */}

Subtasks

); }