{ if (open) { open = false; } }} /> { if (v) { pushState('', '#dialog'); } else { history.back(); } onOpenChange?.(v); }} bind:open {...restProps} />