import React from "react" import { Box, BoxProps, Flex, useColorModeValue ,Text, Link, HStack} from "@chakra-ui/react" import { FaGithub, FaGlobeAsia, FaGreaterThan, FaLink, FaLocationArrow, FaTwitter } from "react-icons/fa" import userCustomTheme from "theme/user-custom" interface Props { type: string url: string } export const WebsiteLink = ({type, url,...rest}: Props) => { let icon0 let title switch (type) { case "github": title= "Github" icon0 = break; case "twitter": title = "Twitter" icon0 = break; default: title = "Official website" icon0 = break; } return ( {icon0} {title} ) } export default WebsiteLink