<script>
	export let promise;
	export let answer;
</script>

{#if promise}
	{#await promise}
		<p>wait for it...</p>
	{:then _}
		<p>the answer is {answer}!</p>
	{:catch error}
		<p>well that's odd</p>
	{/await}
{/if}