import React, { useEffect } from 'react'; import toastError from "../../errors/toastError"; import Typography from "@material-ui/core/Typography"; import Grid from "@material-ui/core/Grid"; import { Button, Divider, } from "@material-ui/core"; const LocationPreview = ({ image, link, description }) => { useEffect(() => {}, [image, link, description]); const handleLocation = async() => { try { window.open(link); } catch (err) { toastError(err); } } return ( <>