import React, { useEffect, useState } from 'react'; import { Button, DropdownButton, DropdownMenu } from 'react-bootstrap'; import { } from 'react-usestateref'; import CHScf from '../JSON/CHScf.json'; import CHShf from '../JSON/CHShf.json'; import HE from '../JSON/HE.json'; import IPE from '../JSON/IPE.json'; import LEq from '../JSON/LEq.json'; import LUneq from '../JSON/LUneq.json'; import PSO from '../JSON/Profile_Style_Options.json'; import RHScf from '../JSON/RHScf.json'; import RHShf from '../JSON/RHShf.json'; import SHScf from '../JSON/SHScf.json'; import SHShf from '../JSON/SHShf.json'; import texts from '../JSON/websitetext.json'; import ColoredLine from '../Methods/ColoredLine'; import './BasincHesabi.css'; import TestThree from './TestThree'; import { flushSync } from 'react-dom'; function BasincHesabi() { const createMarkup = (htmlString) => ({ __html: htmlString }); const Letter_Info_Writer = (letter_exp) => { return `${letter_exp.Letter}${letter_exp.Upper}${letter_exp.Lower} : ${letter_exp.Text}`; }; var [selectedOption, setSelectedOption] = useState("HE"); var [selectedProfile, setSelectedProfile] = useState("HE 100 A"); const handleOptionChange = (e) => { setSelectedOption(e.target.value); debugger; switch (selectedOption) { case "HE": setSelectedProfile(HE[0].Profile); break; case "IPE": setSelectedProfile(IPE[0].Profile); break; case "LEq": setSelectedProfile(IPE[0].Profile); break; case "LUneq": setSelectedProfile(IPE[0].Profile); break; case "CHScf": setSelectedProfile(CHScf[0].Profile); break; case "CHShf": setSelectedProfile(CHShf[0].Profile); break; case "RHScf": setSelectedProfile(RHScf[0].Profile); console.log("sec123 prof:", selectedProfile) break; case "RHShf": setSelectedProfile(RHShf[0].Profile); break; case "SHScf": setSelectedProfile(SHScf[0].Profile); break; case "SHShf": setSelectedProfile(SHShf[0].Profile); break; }}; const handleProfileChange = (e) => { setSelectedProfile(e.target.value); console.log(selectedProfile) }; const handleProfileType = (selectedOption) => { switch (selectedOption) { case "HE": return HE.map(element => ); case "IPE": return IPE.map(element => ); case "LEq": return LEq.map(element => ); case "LUneq": return LUneq.map(element => ); case "CHScf": return CHScf.map(element => ); case "CHShf": return CHShf.map(element => ); case "RHScf": return RHScf.map(element => ); case "RHShf": return RHShf.map(element => ); case "SHScf": return SHScf.map(element => ); case "SHShf": return SHShf.map(element => ); } }; return (
); } export default BasincHesabi;