mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
[web] Bootstrap class name helper GitOrigin-RevId: 9c2042aa2ea0e4d3828b32c321336e1c3a4a0ef8
8 lines
215 B
TypeScript
8 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
|
|
}
|