Created the SoftwareGrid.jsx
This commit is contained in:
parent
09b79c66bf
commit
62671eba0a
@ -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>
|
||||||
|
)
|
Reference in New Issue
Block a user