export const toBase64 = (str: string) => typeof window === 'undefined' ? Buffer.from(str).toString('base64') : window.btoa(str) export const getBlurDataURL = (str: string) => { return `data:image/svg+xml;base64,${toBase64(str)}` }