{#snippet download(size: "small" | "regular")} {#if downloadUrls} {#snippet trigger()} Download commit {/snippet} As a patch file As a diff file {/if} {/snippet} {#snippet styleSwitch(size: "small" | "regular", narrow: string)} styleHref(style) as "/" : undefined} label="Diff style" > {#each ["unified", "split"] as const as style (style)} (localStyle = style)} {size} class={narrow} > {style === "split" ? "Split" : "Unified"} {/each} {/snippet} {#if loading && !diff} {:else}