feat(isac): add OS protocol management
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<script lang="ts">
|
||||
import { gameIcons, type GameIconName } from '$lib/game-icons';
|
||||
|
||||
let {
|
||||
name,
|
||||
decorative = false,
|
||||
class: className = ''
|
||||
}: { name: GameIconName; decorative?: boolean; class?: string } = $props();
|
||||
|
||||
const icon = $derived(gameIcons[name]);
|
||||
</script>
|
||||
|
||||
<img
|
||||
class={`game-icon ${className}`}
|
||||
src={icon.src}
|
||||
alt={decorative ? '' : icon.label}
|
||||
aria-hidden={decorative ? 'true' : undefined}
|
||||
/>
|
||||
Reference in New Issue
Block a user