overleaf-cep/services/web/frontend/js/shared/components/interstitial.tsx
roo hutton 8cd8d8239b Merge pull request #26779 from overleaf/rh-email-confirmation-logo
Use green OL logo in Interstitial and ODC components

GitOrigin-RevId: 8fee3f0758e22c4ebaea7d0cd01a408c16380a98
2025-07-04 08:05:35 +00:00

26 lines
667 B
TypeScript

import classNames from 'classnames'
import overleafLogo from '@/shared/svgs/overleaf-green.svg'
type InterstitialProps = {
className?: string
contentClassName?: string
children: React.ReactNode
showLogo: boolean
title?: string
}
export function Interstitial({
className,
contentClassName,
children,
showLogo,
title,
}: InterstitialProps) {
return (
<div className={classNames('interstitial', className)}>
{showLogo && <img className="logo" src={overleafLogo} alt="Overleaf" />}
{title && <h1 className="h3 interstitial-header">{title}</h1>}
<div className={classNames(contentClassName)}>{children}</div>
</div>
)
}