UNPKG

@navinc/base-react-components

Version:
17 lines (16 loc) 890 B
import { ReactElement } from 'react'; import { IconName } from './icons'; import Button from './button'; import { InferComponentProps } from './types'; declare type Status = 'default' | 'error'; declare type AlertBannerProps = { title: string; desc: string; icon?: IconName; status?: Status; renderPrimaryBtn?: (props: InferComponentProps<typeof Button>) => ReactElement; renderSecondaryBtn?: (props: InferComponentProps<typeof Button>) => ReactElement; }; export declare const AlertBanner: ({ title, desc, icon, status, renderPrimaryBtn, renderSecondaryBtn, ...props }: AlertBannerProps) => JSX.Element; declare const _default: import("styled-components").StyledComponent<({ title, desc, icon, status, renderPrimaryBtn, renderSecondaryBtn, ...props }: AlertBannerProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>; export default _default;