import React from "react"; import { useParams } from "react-router-dom"; import {Lock, Binary, List, Network} from 'lucide-react'; import { useTranslation } from 'react-i18next'; import * as styles from "./Tools.module.scss"; import LinkBox from "../components/LinkBox"; import tools from "../tools/tools"; import { Helmet } from "react-helmet"; const ToolsPage = () => { const { t } = useTranslation(); let { category } = useParams(); if(category) category = category.toLowerCase(); let toolList = tools.filter((tool) => { return !tool.hidden && (category == null || tool.category === category); }); return <> {t("tools.toolList")} | {t("site.title")}
{t("tools.toolList")}
} small={true} highlight={category == null} /> } small={true} highlight={category === "cryptography"} /> } small={true} highlight={category === "encodings"} /> } small={true} highlight={category === "networking"} /> {/**/}
{toolList.map((tool, i) => { return (} />); })} {toolList.length === 0 ? {t("tools.noresults")} : null}
; } export default ToolsPage;