mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
e60885aa88
Move CSS loading in Cypress to individual test spec files GitOrigin-RevId: 92bb5167cfa81b0bd54acc724efb23b397421ccb
16 lines
341 B
TypeScript
16 lines
341 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
|