📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
"use client";
import * as PhosphorIcons from "@phosphor-icons/react";
import { createElement } from "react";
export function Icon({ name }: { name: string }) {
const IconComponent = PhosphorIcons[name as keyof typeof PhosphorIcons] as any;
if (!IconComponent) return null;
return createElement(IconComponent);
}