overleaf/services/web/frontend/js/features/ui/components/bootstrap-5/bootstrap-version-switcher.tsx
ilkin-overleaf 0e71084600 Merge pull request #19840 from overleaf/ii-bs5-project-tools
[web] BS5 project tools

GitOrigin-RevId: 3181c62985b6db4051292b484f53178a0736fa75
2024-08-22 14:01:43 +00:00

15 lines
343 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