mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 03:01:53 +10:00
18 lines
389 B
TypeScript
18 lines
389 B
TypeScript
type BrandIconProps = {
|
|
slug: string;
|
|
};
|
|
|
|
export const BrandIcon = ({ slug }: BrandIconProps) => {
|
|
if (slug === "linkedin") {
|
|
return (
|
|
<img
|
|
alt="linkedin"
|
|
className="size-4"
|
|
src={`${window.location.origin}/support-logos/linkedin.svg`}
|
|
/>
|
|
);
|
|
}
|
|
|
|
return <img alt={slug} className="size-4" src={`https://cdn.simpleicons.org/${slug}`} />;
|
|
};
|