mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-17 21:05:04 -04:00
a9436039b6
[web] Bootstrap class name helper GitOrigin-RevId: 9c2042aa2ea0e4d3828b32c321336e1c3a4a0ef8
7 lines
215 B
TypeScript
7 lines
215 B
TypeScript
import getMeta from '@/utils/meta'
|
|
|
|
export const isBootstrap5 = getMeta('ol-bootstrapVersion') === 5
|
|
|
|
export const bsClassName = ({ bs5, bs3 }: { bs5: string; bs3: string }) => {
|
|
return isBootstrap5 ? bs5 : bs3
|
|
}
|