// @flow import React from 'react'; import Page from 'component/page'; import Card from 'component/common/card'; import Spinner from 'component/spinner'; import Notification from 'component/notification'; type Props = { notifications: ?Array, fetching: boolean, }; export default function NotificationsPage(props: Props) { const { notifications, fetching } = props; return ( {fetching && (
)} {notifications && notifications.length > 0 ? ( {notifications.map((notification, index) => { return ; })} } /> ) : (
{__('No notifications')}
)}
); }