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
19 lines
496 B
TypeScript
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>
|
|
)
|
|
}
|