feat(SW-1884): Always render sidepeek contents, not just during SSR

Approved-by: Michael Zetterberg
This commit is contained in:
Erik Tiekstra
2025-04-03 09:36:22 +00:00
parent b70d933c73
commit 8c2047e847
6 changed files with 73 additions and 59 deletions

View File

@@ -0,0 +1,16 @@
import type { SidePeekProps } from "./sidePeek"
// Sidepeeks generally have important content that should be indexed by search engines.
// The content is hidden behind a modal, but it is still important for SEO.
// This component is used to provide SEO information for the sidepeek content.
export default function SidePeekSEO({
title,
children,
}: React.PropsWithChildren<Pick<SidePeekProps, "title">>) {
return (
<div className="sr-only">
<h2>{title}</h2>
{children}
</div>
)
}