<script lang="ts">
	import Organized from '$lib/icons/Organized.svelte';
	import type { MouseEventHandler } from 'svelte/elements';

	interface Props {
		organized: boolean;
		onclick: MouseEventHandler<HTMLButtonElement>;
	}

	let { organized, onclick }: Props = $props();
</script>

<button type="button" title="Toggle organized" class="flex text-base" {onclick}>
	<Organized hoverable {organized} />
</button>
