refactor: icon and download button use button component

This commit is contained in:
2026-09-02 18:37:43 +05:00
parent 3d0f8ebb10
commit 8a6f87938d
16 changed files with 85 additions and 167 deletions
+11
View File
@@ -0,0 +1,11 @@
<script lang="ts">
import type { Component } from "svelte";
interface Props {
icon: Component<{ size?: number; class?: string }>;
size?: number;
}
let { icon: IconComp, size = 16 }: Props = $props();
</script>
<IconComp {size} />