Something went wrong. Try again.
Mirror of https://github.com/kualta/site — web infrastructure
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233---import { BlueskyIcon, EthereumIcon, GithubIcon, type IconComponent, InstagramIcon, MailIcon, TiktokIcon, XLogoIcon, YoutubeIcon,} from "./icons";
interface Props { platform: string; size?: number;}
const { platform, size = 18 } = Astro.props;const icons: Record<string, IconComponent> = { github: GithubIcon, youtube: YoutubeIcon, twitter: XLogoIcon, instagram: InstagramIcon, tiktok: TiktokIcon, bluesky: BlueskyIcon, email: MailIcon, ethereum: EthereumIcon,};const Icon = icons[platform];---{Icon && <Icon size={size} />}