mirror of
https://github.com/overleaf/overleaf.git
synced 2025-12-05 01:10:29 +00:00
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
|
|
}
|