<script lang="ts">
	import { foodStore } from '$lib/store/foodStore'
	import FoodTable from '$components/Food/FoodTable.svelte'
	import { lookbackDaysStore } from '$lib/store/lookbackDaysStore'
	// @ts-ignore
	lookbackDaysStore.subscribe((n) => foodStore.refresh())
</script>

<template>
	<FoodTable items="{$foodStore}" />
</template>
