UNPKG

@geezee/react-ui

Version:

Modern and minimalist React UI library.

15 lines (14 loc) 406 B
import React from 'react'; import { MessageColors } from '../utils/prop-types'; export interface Message { icon?: React.ReactNode; text?: string; color?: MessageColors; delay?: number; closeable?: boolean; shadow?: boolean; className?: string; onClose?: (id: string) => void; } declare const useMessages: () => [Message[], (t: Message) => void]; export default useMessages;