mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Add a popover to the AI assistant rail button GitOrigin-RevId: 5bc141ba10ef0bc798ab79a847d73804d60353d6
11 lines
177 B
TypeScript
11 lines
177 B
TypeScript
export function shouldIncludeElement({
|
|
hide,
|
|
}: {
|
|
hide?: boolean | (() => boolean)
|
|
}): boolean {
|
|
if (typeof hide === 'function') {
|
|
return !hide()
|
|
}
|
|
return !hide
|
|
}
|