mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
2f74b79d3a
[web] Bootstrap 5 containers, rows, cols GitOrigin-RevId: 2b6b6fd1aebce739971e1428ab7c3cd6ec6c3858
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
import { isBootstrap5 } from '@/features/utils/bootstrap-5'
|
|
|
|
type BootstrapVersionSwitcherProps = {
|
|
bs3: React.ReactNode
|
|
bs5: React.ReactNode
|
|
}
|
|
|
|
function BootstrapVersionSwitcher({
|
|
bs3,
|
|
bs5,
|
|
}: BootstrapVersionSwitcherProps): React.ReactElement {
|
|
return <>{isBootstrap5 ? bs5 : bs3}</>
|
|
}
|
|
|
|
export default BootstrapVersionSwitcher
|