This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import type { SimpleIcon } from "simple-icons";
|
||||
|
||||
export function BrandIcon({
|
||||
icon,
|
||||
className,
|
||||
color,
|
||||
}: {
|
||||
icon: SimpleIcon;
|
||||
className?: string;
|
||||
/** Override the brand colour (dark brand colours vanish on a dark theme). */
|
||||
color?: string;
|
||||
}) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
aria-hidden="true"
|
||||
className={className}
|
||||
fill={color ?? `#${icon.hex}`}
|
||||
>
|
||||
<path d={icon.path} />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user