import type { Resource } from './resources';
interface Props {
source?: Resource['source'];
}
/**
* Tiny mark indicating where a resource lives — GitHub repo, YouTube,
* docs site, blog, or npm. Sits in the corner of each ResourceCard.
*/
export function SourceIcon({ source }: Props) {
switch (source) {
case 'github':
return (
);
case 'youtube':
return (
);
case 'npm':
return (
);
case 'blog':
return (
);
case 'docs':
return (
);
default:
return (
);
}
}