Files
overleaf-cep/services/web/frontend/js/shared/components/interstitial.tsx
Eric Mc Sween 4ccc21ca85 Merge pull request #24046 from overleaf/em-cdn-assets
Load assets from the CDN in selected pages

GitOrigin-RevId: c2b25f74e30c0ce47e486855dee3815d72d43d47
2025-03-06 09:05:23 +00:00

27 lines
661 B
TypeScript

import classNames from 'classnames'
import overleafLogo from '@/shared/svgs/overleaf.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>
)
}