Project Refactoring

This commit is contained in:
Aleksi Lassila
2023-07-09 15:50:04 +03:00
parent 56ef4ee865
commit 494a3bf85a
83 changed files with 319 additions and 276 deletions

View File

@@ -0,0 +1,15 @@
<script>
import classNames from 'classnames';
export let disabled = false;
</script>
<div
class={classNames('text-zinc-300 hover:text-zinc-50 p-1 flex items-center justify-center', {
'opacity-30 cursor-not-allowed pointer-events-none': disabled,
'cursor-pointer': !disabled
})}
on:click|stopPropagation
>
<slot />
</div>