import { SyntheticEvent } from 'react' import dynamic from 'next/dynamic' import { KoreanbotsEndPoints } from '@utils/Constants' const Image = dynamic(() => import('@components/Image')) const ServerIcon: React.FC = ({ id, size, className, alt, hash }) => { return ( {alt} ) } interface ServerIconProps { alt?: string id: string hash?: string fromDiscord?: boolean className?: string size?: 128 | 256 | 512 } interface ImageEvent extends Event { target: ImageTarget } interface ImageTarget extends EventTarget { src: string onerror: (event: SyntheticEvent) => void } export default ServerIcon