import { useState } from "react"; import Image, { ImageProps } from "next/image"; import KeplrIcon from "../../public/images/svg/keplr-icon.svg"; import styled from "styled-components"; export const ChainImage = ({ src, ...props }: ImageProps) => { const [srcState, setSrcState] = useState(src); return ( chain image setSrcState(KeplrIcon)} /> ); }; const ImageWrapper = styled.div` img { border-radius: 50%; } `;