mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 08:00:59 +00:00
d604a273ee
* feat(frontend): add copy, paste and cut * feat(frontend): simplify code * feat(frontend): add apple modifiers --------- Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
19 lines
468 B
Svelte
19 lines
468 B
Svelte
<script>
|
|
import { faClose } from '@fortawesome/free-solid-svg-icons'
|
|
import { createEventDispatcher } from 'svelte'
|
|
|
|
import { Icon } from 'svelte-awesome'
|
|
|
|
export let noBg = false
|
|
const dispatch = createEventDispatcher()
|
|
</script>
|
|
|
|
<button
|
|
on:click={() => dispatch('close')}
|
|
class="hover:bg-gray-200 {noBg
|
|
? ''
|
|
: 'bg-gray-100'} rounded-full w-8 h-8 flex items-center justify-center transition-all"
|
|
>
|
|
<Icon data={faClose} class="text-gray-500" />
|
|
</button>
|