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 ( GitHub ); case 'youtube': return ( YouTube ); case 'npm': return ( npm ); case 'blog': return ( Article ); case 'docs': return ( Docs ); default: return ( Link ); } }