mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 06:39:01 +02:00
4a4b82cec1
[web] Refactor tab hiding GitOrigin-RevId: 29b4d1e67348a51e3c575ab2dda6e0931a90d504
9 lines
191 B
TypeScript
9 lines
191 B
TypeScript
import { RailElement } from './rail-types'
|
|
|
|
export function shouldIncludeRailTab({ hide }: RailElement): boolean {
|
|
if (typeof hide === 'function') {
|
|
return !hide()
|
|
}
|
|
return !hide
|
|
}
|