<script>
	export let index = 0;
	export let on_click = () => {};
</script>

<!-- class="bg-white dark:bg-gray-800" -->
<!-- {index % 2 == 0 ? 'text-white' : 'text-black'} -->
<!-- {index % 2 == 0 ? 'bg-[#444]' : 'bg-[#dcdcdc]'}" -->
<tr
	on:click={on_click}
	class="
	text-black dark:text-white
	{index % 2 == 0
		? 'bg-[#fff] dark:bg-gray-800'
		: 'bg-[#e0e0e0] dark:bg-gray-700'}"
>
	<slot />
</tr>
