<script>
    import Icon from './Icon.svelte';
    export let icon = null;
</script>

<button>
    {#if icon}<Icon name={icon} class="w-4 text-gray-200" />{/if}
    <slot></slot>
</button>