import Link from "next/link"; 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 'activitypub': buttonColor = "#F1007E"; iconFile = icons.siActivitypub.svg; break; case 'git': buttonColor = "#FB923C"; iconFile = icons.siForgejo.svg; break; case 'matrix': buttonColor = "#000"; iconFile = icons.siMatrix.svg; break; case 'facebook': buttonColor = "#0866FF"; iconFile = icons.siFacebook.svg; break; default: buttonColor = ""; iconFile = ""; break; } return (

{ title }

{ description }

); }; export default ContactButton;