Merge pull request #20740 from overleaf/rd-ide-offcanvas

[web] Implement the editor's left menu in Offcanvas

GitOrigin-RevId: 999e995d664b1dc958f56643f05e95b8aa2d6290
This commit is contained in:
Rebeka Dekany
2024-10-14 11:09:31 +00:00
committed by Copybot
parent 7a26d46d7c
commit f8efc3e2ae
40 changed files with 865 additions and 239 deletions
@@ -12,6 +12,16 @@ export function bsVersion({ bs5, bs3 }: { bs5?: unknown; bs3?: unknown }) {
return isBootstrap5() ? bs5 : bs3
}
export const bsVersionIcon = ({
bs5,
bs3,
}: {
bs5?: { type: string }
bs3?: { type: string; fw?: boolean }
}) => {
return isBootstrap5() ? bs5 : bs3
}
// get all `aria-*` and `data-*` attributes
export const getAriaAndDataProps = (obj: Record<string, unknown>) => {
return Object.entries(obj).reduce(