<script lang="ts">
  import { goto } from "$app/navigation";
  import Button from "$lib/components/Button.svelte";
  import LightningSettings from "$lib/components/LightningSettings.svelte";
  import NostrWalletConnect from "$lib/components/NostrWalletConnect.svelte";
  import DangerZone from "$lib/components/DangerZone.svelte";

  function goBack() {
    goto("/");
  }
</script>

<div class="container">
  <div class="retro-card">
    <div class="header">
      <h1>Settings</h1>
      <Button onclick={goBack}>Back</Button>
    </div>
  </div>

  <LightningSettings />

  <NostrWalletConnect />

  <DangerZone />
</div>

<style>
  .container {
    width: 100%;
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }

  h1 {
    margin: 0;
    font-size: 1.2rem;
  }
</style>
