mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-05-01 09:20:01 -05:00
Created the AvailableIntegrations.jsx component
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import React from "react";
|
||||
import {t} from "i18next";
|
||||
import "./styles.sass";
|
||||
|
||||
export const AvailableIntegrations = ({integrations, currentTab, setCurrentTab}) => (
|
||||
<div className="available-integrations">
|
||||
{Object.keys(integrations).map((key) => <div
|
||||
className={"integration-tab" + (key === currentTab ? " integration-active" : "")} key={key}
|
||||
onClick={() => setCurrentTab(key)}>
|
||||
|
||||
<FontAwesomeIcon icon={integrations[key].icon} className="integration-icon"/>
|
||||
<p className="integration-text">{t(`integrations.${key}.title`)}</p>
|
||||
</div>)}
|
||||
</div>
|
||||
)
|
||||
Reference in New Issue
Block a user