import React, { useState } from "react"; import { AccordionTitle, SubjectsAccordionDiv, OpenAccordionSymbol, } from "./Styled/SubjectsAccordion.style."; import { EntityLi, EntityUl, EntityParam } from "./Styled/EntityList.style"; const SubjectsAccordion = (props) => { const [height, setHeight] = useState("0"); const [opacity, setOpacity] = useState(0); const handleClick = () => { if (height === "0") { setHeight("auto"); setOpacity(1); } else { setHeight("0"); setOpacity(0); } }; return (