UNPKG

livingston-react-library

Version:

Livingston library

24 lines (23 loc) 533 B
/// <reference types="react" /> /** * Display an alert box. * * Props: * The text is expected to be translated. * Optional link should include url and title (which should be already translated too) * * Example: * <Explanation text={} link={{url: '', title: ''}} * */ declare type Link = { url: string; title: string; pdf: string; }; declare type HelpBoxProps = { text: string; link: Link; }; export declare const HelpBox: ({ text, link }: HelpBoxProps) => JSX.Element; export {};