~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
21 lines · 779 B Raw History
<svelte:options namespace="svg" />

<script lang="ts">
	import { ICONS, OCTICONS, isOcticon, type IconName } from './icons';

	// An icon's paths, inside its caller's 24-unit `<svg>`, which sizes it
	// and strokes it in the text's colour: an Octicon is filled instead,
	// its 16-unit grid scaled to the 20 units Lucide's strokes span, and a
	// pinned feed's pin is filled as well as stroked.
	let { name }: { name: IconName } = $props();
</script>

{#if isOcticon(name)}
	<g transform="translate(2 2) scale(1.25)" fill="currentColor" stroke="none">
		{#each OCTICONS[name] as d (d)}<path {d} />{/each}
	</g>
{:else if name === 'pinned'}
	<g fill="currentColor">{#each ICONS[name] as d (d)}<path {d} />{/each}</g>
{:else}
	{#each ICONS[name] as d (d)}<path {d} />{/each}
{/if}