mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 12:47:25 +00:00
18 lines
417 B
Svelte
18 lines
417 B
Svelte
<script>
|
|
import { getFormContext } from './FormProviderCore.svelte';
|
|
import { createEventDispatcher } from 'svelte';
|
|
import LargeButton from '../elements/LargeButton.svelte';
|
|
|
|
const dispatch = createEventDispatcher();
|
|
|
|
const { values } = getFormContext();
|
|
|
|
function handleClick() {
|
|
dispatch('click', $values);
|
|
}
|
|
</script>
|
|
|
|
<LargeButton on:click={handleClick} {...$$props}>
|
|
<slot />
|
|
</LargeButton>
|