<script lang="ts">
import { temperature } from './stores';
import { temperatures } from './config.json';
import Radio from './Radio.svelte';
</script>

<div>
  <fieldset>
    <legend>Temperature</legend>
    <Radio bind:selection={$temperature} options={temperatures} />
  </fieldset>
</div>

<style>
fieldset {
  padding: 0;
  border: none;
  margin-top: 1rem;
}

legend {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 1rem;
}
</style>
