<script>
	export let todos;
</script>

{#each Object.keys(todos) as key}
	<div class='todo {todos[key].done ? "done": ""}'>
		<input type='checkbox' bind:checked={todos[key].done}>
		<input type='text' bind:value={todos[key].description}>
	</div>
{/each}