mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 21:21:32 +10:00
20 lines
419 B
TypeScript
20 lines
419 B
TypeScript
import { cn } from "@reactive-resume/utils";
|
|
|
|
type BrandIconProps = {
|
|
slug: string;
|
|
};
|
|
|
|
export const BrandIcon = ({ slug }: BrandIconProps) => {
|
|
if (slug === "linkedin") {
|
|
return (
|
|
<img
|
|
alt="LinkedIn"
|
|
className="size-5"
|
|
src={`${window.location.origin}/support-logos/linkedin.svg`}
|
|
/>
|
|
);
|
|
}
|
|
|
|
return <i className={cn("si si--color text-[1.25rem]", `si-${slug}`)} />;
|
|
};
|