app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

+page.svelte (484B)


      1 <script lang="ts">
      2   import { page } from '$app/state';
      3   import { goto } from '$app/navigation';
      4   import ListingEditor from '../../../../lib/components/ListingEditor.svelte';
      5   import type { ListingEditorRoute } from '../../../../lib/publishing/listing-editor.ts';
      6   const route = $derived({
      7     mode: 'edit',
      8     naddr: page.params.naddr ?? ''
      9   } satisfies ListingEditorRoute);
     10 </script>
     11 
     12 <ListingEditor
     13   {route}
     14   onsavedclose={async () => {
     15     await goto('/selling');
     16   }}
     17 />