mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-11-21 10:40:41 +08:00
29 lines
545 B
Svelte
29 lines
545 B
Svelte
<script lang="ts">
|
|
import Button from "@app/components/Button.svelte";
|
|
|
|
interface Props {
|
|
active: boolean;
|
|
enable: () => void;
|
|
disable: () => void;
|
|
}
|
|
|
|
const { active, enable, disable }: Props = $props();
|
|
</script>
|
|
|
|
<style>
|
|
.container {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
</style>
|
|
|
|
<div class="container">
|
|
<Button flatRight active={!active} variant="ghost" onclick={disable}>
|
|
Disable
|
|
</Button>
|
|
|
|
<Button flatLeft variant="ghost" active={Boolean(active)} onclick={enable}>
|
|
Enable
|
|
</Button>
|
|
</div>
|