mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 15:19:02 +02:00
efe7cf0064
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
|
|
}
|