// this is not a good approach because if one svg file is used in multiple places // then the svg string will be rendered multiple times. export const Svg = ({ children, width, height, color, }: { children: string; width?: string; height?: string; color?: string; }) => { let content = children || ''; if (content.startsWith('data:image/svg+xml,')) { content = decodeURIComponent(content.slice('data:image/svg+xml,'.length)); } else if (content.includes('%') && content.includes('; };