mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 16:05:10 -05:00
16 lines
339 B
TypeScript
16 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
|