in beta/src/components/DocsFooter.tsx [22:56]
function DocsPageFooter({nextRoute, prevRoute, route}) {
if (!route || route?.heading) {
return null;
}
return (
<>
{prevRoute?.path || nextRoute?.path ? (
<>
<div className="max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-4 py-4 md:py-12">
{prevRoute?.path ? (
<FooterLink
type="Previous"
title={prevRoute.title}
href={removeFromLast(prevRoute.path, '.')}
/>
) : (
<div />
)}
{nextRoute?.path ? (
<FooterLink
type="Next"
title={nextRoute.title}
href={removeFromLast(nextRoute.path, '.')}
/>
) : (
<div />
)}
</div>
</>
) : null}
</>
);
},