---
/**
 * Footer override — keeps Starlight's Pagination, drops the duplicate
 * edit/last-updated meta (already shown in PageTitle's .doc-meta), and
 * appends the docs-page-mockup .help-strip ("Was this page helpful?").
 *
 * Styles live in src/styles/starlight-docs-bridge.css §09 (.help-strip).
 */
import Pagination from 'virtual:starlight/components/Pagination';

const route = Astro.locals.starlightRoute;
const editUrl = route.editUrl?.toString();
---

<footer class="sl-flex">
	<Pagination />
	<aside class="help-strip">
		<span class="help-strip-text">Was this page helpful?</span>
		<div class="help-strip-actions">
			<a href={`https://github.com/alllinux/Nibiru/discussions/new?category=docs-feedback&title=${encodeURIComponent('Feedback: ' + (route.entry.data.title ?? ''))}`}>Yes</a>
			{editUrl && <a href={editUrl}>Suggest an edit</a>}
		</div>
	</aside>
</footer>

<style>
	@layer starlight.core {
		footer {
			flex-direction: column;
			gap: 1.5rem;
		}
	}
</style>
