{#each RANGE_PRESETS as p (p.key)}
selectPreset(p.key)}>{p.label}
{/each}
(manualCustom = !manualCustom)} >Custom
{#if showCustom}
(userFrom = e.currentTarget.value)} aria-label="From date" max={to} />
→
(userTo = e.currentTarget.value)} aria-label="To date" min={from} />
Apply
{/if}