import React, { FC, useEffect, useState } from "react";
import styles from './index.module.scss';

type Props = {
  message: string;
  bg: any
};

const Toast: FC<Props> = ({ message, bg }) => {

  return (
    <div className={`${styles.Layout}`}>
      <div className="toast" style={{ backgroundImage: `url(${bg})` }}>
        <div className="toast-message">{message}</div>
      </div>
    </div>
  );
};

export default Toast;
