Files
overleaf-cep/services/web/frontend/js/features/ide-redesign/utils/rail-utils.ts
Mathias Jakobsen efe7cf0064 Merge pull request #30237 from overleaf/ae-workbench-popover
Add a popover to the AI assistant rail button

GitOrigin-RevId: 5bc141ba10ef0bc798ab79a847d73804d60353d6
2025-12-12 09:05:15 +00:00

11 lines
177 B
TypeScript

export function shouldIncludeElement({
hide,
}: {
hide?: boolean | (() => boolean)
}): boolean {
if (typeof hide === 'function') {
return !hide()
}
return !hide
}