import React, { useCallback, useEffect, useRef, useState } from 'react';
import textImage from '../googleYahoo.png';
export function App(props) {
const initialCoords = {
google: [23, 32, 237, 98],
yahoo: [259, 32, 448, 83],
};
const [coords, setCoords] = useState({
google: initialCoords.google,
yahoo: initialCoords.yahoo,
});
const imgRef = useRef(null);
const updateCoordinates = useCallback(() => {