UNPKG

@oceanbase/ui

Version:

The UI library based on OceanBase Design

48 lines (47 loc) 1.24 kB
import React from 'react'; import type { Locale } from '../interface'; import type { LocaleWrapperProps } from '../locale/LocaleWrapper'; export type OverlayFunc = () => React.ReactElement; export interface HeaderLocale { help: string; welcome: string; versionNotice?: string; viewDocs: string; downloadDocs?: string; about: string; version: string; releaseTime: string; company: string; right: string; } export interface AppData { shortName?: string; version: string; releaseTime: string; } export interface HeaderProps extends LocaleWrapperProps { prefixCls?: string; showLabel?: boolean; style?: React.CSSProperties; className?: string; title?: React.ReactNode; extra?: React.ReactNode; pathname?: string; welcomePath?: string; versionNoticePath?: string; docsPath?: string; pdfPath?: string; iconUrl?: string; logoUrl?: string; simpleLogoUrl?: string; username?: string; userMenu?: React.ReactElement | OverlayFunc; appData?: AppData; locale?: HeaderLocale; showHelp?: boolean; showLocale?: boolean; locales?: Locale[]; langs?: Locale[]; } declare const _default: any; export default _default;