@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
9 lines (8 loc) • 466 B
TypeScript
import React from 'react';
export type InfoBannerProps = {
/** Contents of the banner, supports HTML markup for more structured announcements (eg. link to a blogpost) or a `ReactNode` for more complex content with React components */
message: string | React.ReactNode;
type: 'warning' | 'alert' | 'announcement';
expireAtMs?: number;
};
export declare const InfoBanner: ({ message, type, }: Omit<InfoBannerProps, "expireAtMs">) => React.JSX.Element;