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
|
|
}
|