import { $, component$, Slot } from '@builder.io/qwik' import { useNavigate } from '@builder.io/qwik-city' export default component$<{ withBackButton?: boolean }>(({ withBackButton }) => { const nav = useNavigate() const goBack = $(() => { if (window.history.length > 1) { window.history.back() } else { nav('/explore') } }) return (
{!!withBackButton && (
)}
) })