<script lang="ts">
  import Island from '$lib/islands/island.svelte';

  interface resultObj {
    results: boolean;
    title: string;
    resultLines: string[];
  }

  export let resultObject: resultObj = {
    results: true,
    title: '',
    resultLines: []
  };

  let variables = {
    title: resultObject.title
  };
</script>

<Island {variables}>
  {#each resultObject.resultLines as line}
    <p>{line}</p>
  {/each}
</Island>

<style>
  p {
    color: var(--island-text-color);
  }
</style>
