You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-wallet/src/components/notifications/Context/components/Static/index.js

23 lines
560 B

6 years ago
/* @flow */
import * as React from 'react';
import Notification from 'components/Notification';
6 years ago
import type { Props } from '../../index';
export default (props: Props) => {
const { location } = props.router;
if (!location) return null;
const notifications: Array<Notification> = [];
// Example:
// if (location.state.device) {
// notifications.push(<Notification key="example" type="info" title="Static example" />);
// }
6 years ago
return (
<React.Fragment>
{notifications}
</React.Fragment>
);
6 years ago
};