36 lines
394 B
Plaintext
36 lines
394 B
Plaintext
---
|
|
type Props = {
|
|
readonly nextUrl?: string;
|
|
readonly prevUrl?: string;
|
|
};
|
|
|
|
const { nextUrl, prevUrl } = Astro.props;
|
|
---
|
|
|
|
<style lang="scss">
|
|
div {
|
|
text-align: center;
|
|
}
|
|
|
|
span {
|
|
margin: 0 2em;
|
|
}
|
|
</style>
|
|
|
|
<div>
|
|
{
|
|
prevUrl && (
|
|
<span>
|
|
<a href={prevUrl}>< Prev</a>
|
|
</span>
|
|
)
|
|
}
|
|
{
|
|
nextUrl && (
|
|
<span>
|
|
<a href={nextUrl}>Next ></a>
|
|
</span>
|
|
)
|
|
}
|
|
</div>
|