@navinc/base-react-components
Version:
Nav's Pattern Library
17 lines (16 loc) • 873 B
TypeScript
import { ReactElement } from 'react';
import { IconName } from './icons';
import { Button } from './button';
import { InferComponentProps } from './types';
type Status = 'default' | 'error';
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;
export declare const InfoBanner: import("styled-components").StyledComponent<({ title, desc, icon, status, renderPrimaryBtn, renderSecondaryBtn, ...props }: AlertBannerProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
export {};