--- import { pageHref, pageWindow } from "../lib/pagination"; interface Props { path: string; params: URLSearchParams; total: number; limit: number; offset: number; anchor?: string; itemLabel?: string; } const { path, params, total, limit, offset, anchor = "", itemLabel = "записей" } = Astro.props; const state = pageWindow(total, limit, offset); --- {total > limit && }