Files
radicle-desktop/src/components/UpdateSwitch.svelte
T

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>