[web] Create domain capture page GitOrigin-RevId: df16ba2cac683d315979be69f63e160ec402020b
25 lines
531 B
TypeScript
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
|