decentraland-ui
Version:
Decentraland's UI components and styles
19 lines (18 loc) • 1 kB
TypeScript
import React from 'react';
import { NotificationActiveTab, DCLNotification, NotificationLocale } from './types';
import { ModalProps } from '../Modal/Modal';
import './Notifications.css';
export interface NotificationsProps {
isOpen: boolean;
items: DCLNotification[];
isLoading: boolean;
locale: NotificationLocale;
isOnboarding: boolean;
activeTab: NotificationActiveTab;
renderProfile?: (address: string) => JSX.Element | string | null;
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
onChangeTab: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, newActiveTab: NotificationActiveTab) => void;
onBegin: (e: React.MouseEvent<HTMLButtonElement>) => void;
onClose: (event: React.MouseEvent<HTMLElement> | MouseEvent, data?: ModalProps) => void;
}
export default function Notifications({ isOpen, items, isLoading, locale, isOnboarding, activeTab, renderProfile, onClick, onChangeTab, onBegin, onClose }: NotificationsProps): JSX.Element;