<script>
  import { page } from '$app/stores';
  import RuleFormPage from '$lib/components/rules/RuleFormPage.svelte';

  const ruleId = $derived(Number($page.params.id) || null);
</script>

<RuleFormPage mode="edit" {ruleId} />
