<script lang="ts">
  import type { Snippet } from 'svelte';

  const {
    children,
    maxwidth = false,
  }: {
    children: Snippet;
    maxwidth?: boolean;
  } = $props();
</script>

<div class={{ 'formatted-table my-1': true, 'w-max': !maxwidth }}>
  {@render children()}
</div>
