i want this to be mapping instead of hard coding the cases
const wCategory = () => {
switch (categoryhovered) {
case 1:
return <SalePriceCtg />
case 2:
return <ArticlesCtg />
default:
return <div>smth3</div>
}
}
i cant map the cases so im searching for a better way to do it