캐시 목록 페이지 추가

This commit is contained in:
static
2025-01-14 03:07:54 +09:00
parent ea0f0e4a71
commit f37df53991
10 changed files with 194 additions and 36 deletions

View File

@@ -0,0 +1,25 @@
<script lang="ts">
import type { Component, Snippet } from "svelte";
import { EntryButton } from "$lib/components/buttons";
import type { SvelteHTMLElements } from "svelte/elements";
interface Props {
children: Snippet;
icon: Component<SvelteHTMLElements["svg"]>;
iconColor: string;
onclick: () => void;
}
let { children, icon: Icon, iconColor, onclick }: Props = $props();
</script>
<EntryButton {onclick}>
<div class="flex items-center gap-x-4">
<div class="rounded-lg bg-gray-200 p-1 {iconColor}">
<Icon />
</div>
<p class="font-medium">
{@render children?.()}
</p>
</div>
</EntryButton>