<script>
	let { onclick, children } = $props();
</script>

<button type="button" class="menu-item" {onclick}>{@render children?.()}</button>

<style>
	.menu-item {
		padding: 0.5rem 1rem;
		cursor: pointer;
		background: none;
		border: none;
		font-family: var(--font);
		font-size: 1rem;
		color: var(--black);
		text-align: left;
		width: 100%;
	}
	.menu-item:hover {
		background-color: var(--light-accent);
	}
</style>
