mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
16 lines
343 B
TypeScript
16 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
|