2024-09-12 22:10:31 +00:00
|
|
|
---
|
|
|
|
type Props = {
|
|
|
|
readonly nextUrl?: string;
|
2024-09-12 22:57:55 +00:00
|
|
|
readonly prevUrl?: string;
|
2024-09-12 22:10:31 +00:00
|
|
|
};
|
|
|
|
|
2024-09-12 22:57:55 +00:00
|
|
|
const { nextUrl, prevUrl } = Astro.props;
|
2024-09-12 22:10:31 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
<style lang="scss">
|
2024-09-12 22:38:34 +00:00
|
|
|
div {
|
2024-09-13 00:26:08 +00:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
margin: 0 2em;
|
2024-09-12 22:10:31 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2024-09-12 22:38:34 +00:00
|
|
|
<div>
|
2024-09-13 00:26:08 +00:00
|
|
|
{
|
|
|
|
prevUrl && (
|
|
|
|
<span>
|
|
|
|
<a href={prevUrl}>< Prev</a>
|
|
|
|
</span>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
nextUrl && (
|
|
|
|
<span>
|
|
|
|
<a href={nextUrl}>Next ></a>
|
|
|
|
</span>
|
|
|
|
)
|
|
|
|
}
|
2024-09-12 22:10:31 +00:00
|
|
|
</div>
|