Created the SoftwareGrid.jsx

This commit is contained in:
Mathias Wagner 2023-06-01 19:48:08 +02:00
parent 09b79c66bf
commit 62671eba0a
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -0,0 +1,14 @@
import "./styles.sass";
import Software from "@/pages/tools/linux/InstallSoftware/software.jsx";
export const SoftwareGrid = ({currentItem, setCurrentItem}) => (
<div className="software-grid">
{Software.map((software) => (
<div className={"software-item" + (currentItem === software.name ? " software-item-active" : "")}
onClick={() => setCurrentItem(software.name)} key={software.name}>
<img src={software.icon} alt={software.name}/>
<p>{software.name}</p>
</div>
))}
</div>
)