<script lang="ts">
	let { title = '', className = '', children, ...restProps } = $props();
</script>

<div class="card bg-base-100 w-full shadow-xl {className}" {...restProps}>
	<div class="card-body">
		{#if title}
			<h2 class="card-title">{title}</h2>
		{/if}
		{@render children?.()}
	</div>
</div>
