import Link from "next/link"; import Image from "next/image"; import React from "react"; import * as icons from 'simple-icons'; interface ContactButtonProps { platform: string; title: string; description: string; href: string; username: string; } const ContactButton: React.FC = ({platform, title, description, href, username}) => { let buttonColor; let iconFile; switch (platform.toLowerCase()) { case 'mastodon': buttonColor = "#6364FF"; iconFile = icons.siMastodon.svg; break; case 'github': buttonColor = "#181717"; iconFile = icons.siGithub.svg; break; case 'discord': buttonColor = "#5865F2"; iconFile = icons.siDiscord.svg; break; case 'facebook': buttonColor = "#0866FF"; iconFile = icons.siFacebook.svg; break; default: buttonColor = ""; iconFile = ""; break; } return (

{ title }

{ description }

); }; export default ContactButton;