mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 06:39:02 +02:00
820174b123
[web] Welcome page migration GitOrigin-RevId: 2469786372df24d579d1987cf5bb1113450e9d78
23 lines
496 B
TypeScript
23 lines
496 B
TypeScript
import { Table as BS5Table } from 'react-bootstrap-5'
|
|
import classnames from 'classnames'
|
|
|
|
function Table({ responsive, ...rest }: React.ComponentProps<typeof BS5Table>) {
|
|
const content = (
|
|
<div
|
|
className={classnames('table-container', {
|
|
'table-container-bordered': rest.bordered,
|
|
})}
|
|
>
|
|
<BS5Table {...rest} />
|
|
</div>
|
|
)
|
|
|
|
if (responsive) {
|
|
return <div className="table-responsive d-flex">{content}</div>
|
|
}
|
|
|
|
return content
|
|
}
|
|
|
|
export default Table
|