overleaf/services/web/frontend/js/features/ui/components/bootstrap-5/bootstrap-version-switcher.tsx
ilkin-overleaf 2f74b79d3a Merge pull request #17619 from overleaf/ii-bs5-rows-cols
[web] Bootstrap 5 containers, rows, cols

GitOrigin-RevId: 2b6b6fd1aebce739971e1428ab7c3cd6ec6c3858
2024-04-08 08:03:59 +00:00

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