refactor: icon and download button use button component
This commit is contained in:
@@ -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} />
|
||||
Reference in New Issue
Block a user