import BadgenTitle from './badgen-title' const BadgePreview = ({ host, badgeURL, focus }) => { const showPreview = focus || !!badgeURL return (
) } const PreviewBadge = ({ host, url }) => { // eslint-disable-next-line @next/next/no-img-element return {url} } const genBadgeSrc = (host: string, url: string) => { if (!url) { return host + 'static/%20/%20' } if (url.split('/').length > 2) { return host + url } else { return host + 'static/%20/%20' } } export default BadgePreview