source: imaps-frontend/src/components/Toast/Toast.jsx@ 0c6b92a

main
Last change on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago

Pred finalna verzija

  • Property mode set to 100644
File size: 379 bytes
RevLine 
[0c6b92a]1import React from "react";
2import PropTypes from "prop-types";
3import styles from "./Toast.module.css";
4
5const Toast = ({ message, type, onClose }) => {
6 return (
7 <div
8 className={`${styles.toast} ${type === 1 ? styles.success : styles.error}`}
9 onClick={onClose}
10 >
11 {message}
12 </div>
13 );
14};
15
16
17
18export default Toast;
Note: See TracBrowser for help on using the repository browser.