import Icon from 'starlight-ion-theme/components/user-components/Icon.astro';
import { Icon as AstroIcon } from 'astro-icon/components';
import type { Props } from '@astrojs/starlight/props';
import { footer } from 'ion:globals';
const { dir, labels, pagination } = Astro.props;
const { prev, next } = pagination;
const isRtl = dir === 'rtl';
const prevLink = Astro.locals.t("page.previousLink");
const nextLink = Astro.locals.t("page.nextLink");
<div class="pagination-links" dir={dir}>
<a class="pagination" href={prev.href} rel="prev">
<Icon name={isRtl ? 'right-arrow' : 'left-arrow'} size="1.5rem" />
<span class="link-title">{prev.label}</span>
<a class="pagination" href={next.href} rel="next">
<Icon name={isRtl ? 'left-arrow' : 'right-arrow'} size="1.5rem" />
<span class="link-title">{next.label}</span>
<div class="page-footer">
<div class="footer-links">
<span>{footer.text}</span>
{footer.links && (<span>—</span>)}
{footer.links && footer.links.map((link) => (
<a href={link.href} target={link.newTab ? '_blank' : '_self'}>{link.text}</a>
<div class="social-footer-icons">
{footer.icons?.map((icon) => (
<a href={icon.href} aria-label={icon.name} target={icon.newTab ? '_blank' : '_self'}><AstroIcon name={icon.name as any} size='1.25rem' /></a>
grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
padding: 1.5rem var(--sl-content-pad-x);
.pagination-links:not(:has(a)) {
justify-content: flex-start;
flex-basis: calc(50% - 0.5rem);
border: 1px solid var(--sl-color-gray-5);
color: var(--sl-color-gray-2);
box-shadow: var(--sl-shadow-md);
transition: all 0.1s ease;
display: inline-block !important;
height: var(--sl-icon-size);
flex-direction: row-reverse;
border-color: var(--sl-color-gray-2);
color: var(--sl-color-white);
font-size: var(--sl-text-2xl);
line-height: var(--sl-line-height-headings);