<script>
  import EventCapture from '$lib/swatch/event-capture.svelte.js';

  import CreateConversationForm from '$lib/components/CreateConversationForm.svelte';
  import EventLog from '$lib/components/swatch/EventLog.svelte';

  let capture = $state(new EventCapture());
  const createConversation = capture.on('createConversation');
</script>

<h1><code>CreateConversationForm</code></h1>

<nav><p><a href=".">Back to swatches</a></p></nav>

<h2>rendered</h2>

<div class="component-preview">
  <CreateConversationForm {createConversation} />
</div>

<h2>events</h2>

<EventLog events={capture.events} clear={capture.clear.bind(capture)} />
