---
interface Props {
count: number
take: number
page: number
query: string
}
const { count, take, page, query } = Astro.props
const pageCount = Math.ceil(count / take)
---
{
pageCount > 1
? Array.from({ length: pageCount }, (_, i) =>
page === i + 1 ? (
{i + 1}
) : (
{i + 1}
)
)
: null
}