Files
Verso/services/web/frontend/js/shared/components/ol/ol-card.tsx
T
ilkin-overleafandCopybot 222ecb55d6 Merge pull request #27641 from overleaf/ii-domain-capture-page
[web] Create domain capture page

GitOrigin-RevId: df16ba2cac683d315979be69f63e160ec402020b
2025-08-11 08:06:21 +00:00

25 lines
531 B
TypeScript

import { Card } from 'react-bootstrap'
import { FC } from 'react'
type OLCardProps = {
children:
| React.ReactNode
| ((Component: typeof Card.Body) => React.ReactElement)
className?: string
'data-testid'?: string
}
const OLCard: FC<OLCardProps> = ({ children, className, ...rest }) => {
return (
<Card className={className} {...rest}>
{typeof children === 'function' ? (
children(Card.Body)
) : (
<Card.Body>{children}</Card.Body>
)}
</Card>
)
}
export default OLCard