overleaf/services/web/frontend/js/features/utils/bootstrap-5.ts
ilkin-overleaf a9436039b6 Merge pull request #17702 from overleaf/ii-bs5-to-bs3-classname-helper
[web] Bootstrap class name helper

GitOrigin-RevId: 9c2042aa2ea0e4d3828b32c321336e1c3a4a0ef8
2024-04-04 08:04:11 +00:00

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
}