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