UNPKG

@difizen/magent-au

Version:
15 lines (12 loc) 376 B
import { View } from '@difizen/mana-app'; import type { ReactNode } from 'react'; export interface NavigatablePage extends View { goBack?: () => void; pageTitle: () => ReactNode; hideBrand?: boolean; } export const NavigatablePageType = { is(data: View): data is NavigatablePage { return data && View.is(data) && 'goBack' in data && 'pageTitle' in data; }, };