<script>
  import { getRules } from '$lib/stores/rules';

	$: rules = getRules();
</script>

<h1>
	New Corona Regulations Berlin
</h1>
<ul>
	{#each $rules as rule}
	<li>
		<h2>Starting {rule.time}</h2>
		<p>
			<span class="emoji">{rule.rule.emoji}</span>
			<span class="text">{rule.rule.text}</span>
		</p>
	</li>
	{/each}
</ul>
