import React from "react"; import { Box, HStack, VStack } from "@chakra-ui/react"; import CustomButton from "./Custom"; import links, { LinkObj } from "./data/links"; import Patreon from "./KoFi"; import Twitter from "./Twitter"; const Buttons = (): JSX.Element => { return ( {links.map((link: LinkObj) => { const { href, name, type } = link; if (type === "primary" || type === "secondary") { return ( ); } if (type === "ko-fi") { return ; } if (type === "twitter") { return ; } })} {links.map((link: LinkObj) => { const { href, name, type } = link; if (type === "primary" || type === "secondary") { return ( ); } if (type === "patreon") { return ; } if (type === "twitter") { return ; } })} ); }; export default Buttons;