<script>
  import { darkModeToggle } from './darkMode';
  import Button from './Button.svelte';

  let darkMode = false;
  function handleDarkMode() {
    darkMode = !darkMode;
    darkModeToggle();
  }
</script>

<Button type="primary" on:click={handleDarkMode}>{darkMode ? 'Light Mode' : 'Dark Mode'}</Button>
