import React, { useState, useEffect } from 'react';
const shapes = ['circle', 'square', 'triangle'];
const getRandomShape = () => shapes[Math.floor(Math.random() * shapes.length)];
const SvgImage = () => {
const [visibleShape, setVisibleShape] = useState(getRandomShape());
useEffect(() => {
setVisibleShape(getRandomShape());
}, []);
return (
);
};
export default SvgImage;