Files
web/packages/design-system/lib/components/SidePeek/SidePeekSEO.tsx
Anton Gunnarsson 7fb082f712 Merged in feat/sw-3218-move-sidepeek-to-design-system (pull request #2598)
feat(SW-3218): Move SidePeek to design-system

* Remove SidePeekProvider dependency on Next

* Remove dependency on i18n in sidepeek

* Inline types

* Move SidePeek to design-system

* Fix align-items value


Approved-by: Bianca Widstam
2025-08-06 08:35:34 +00:00

19 lines
496 B
TypeScript

interface SidePeekSEOProps {
title: string
}
// 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<SidePeekSEOProps>) {
return (
<div className="sr-only">
<h2>{title}</h2>
{children}
</div>
)
}