UNPKG

@open-tender/store

Version:

A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API

30 lines (29 loc) 1.32 kB
import { HeaderProps, SignInButtonProps, TagsButtonProps, CartButtonProps, CancelButtonProps, ScreenConfig, Handlers } from '@open-tender/ui'; import React, { ReactNode } from 'react'; declare const Header: ({ to, backText, showImage, backAction, pathname, navigate, children, SignInButtonView, TagsButtonView, CartButton, CancelButton, AccessibilityButton, startOverCallback, BackButton }: { to?: string; backText?: string; showImage?: boolean; startOverCallback?: () => void; backAction?: () => void; pathname: string; navigate: (route: string) => void; children: (props: HeaderProps & { showImage?: boolean; renderCartButton?: () => ReactNode; renderCancelButton?: () => ReactNode; renderAccessibilityButton?: () => ReactNode; BackButton?: () => ReactNode; }) => ReactNode; SignInButtonView: (props: SignInButtonProps) => ReactNode; TagsButtonView?: (props: TagsButtonProps) => ReactNode; CartButton?: (props: CartButtonProps) => ReactNode; CancelButton?: (props: CancelButtonProps) => ReactNode; AccessibilityButton?: (props: { config: ScreenConfig; isAccessibilityOn?: boolean; handlers: Handlers; }) => ReactNode; BackButton?: () => ReactNode; }) => React.ReactNode; export default Header;