<script lang="ts">
	import Composer from '$lib/core/Composer.svelte';
	import { queryMessages } from '$lib/data/queryMessages';
	import { queryTodos } from '$lib/data/queryTodos';

	let composer = {
		id: 'ComposerParent',
		layout: {
			rows: '1fr auto',
			areas: `
				"main"
				"bottom"
			`
		},
		children: [
			{
				id: 'ComposerOverview',
				component: 'ComposerOverview',
				slot: 'main',
				data: {
					map: {
						todos: queryTodos,
						messages: queryMessages
					}
				}
			},
			{
				id: 'terminal',
				component: 'Terminal',
				slot: 'bottom'
			}
		]
	};
</script>

<Composer {composer} />
