type SvgImport = React.FC<React.SVGProps<SVGSVGElement>> | { src: string };

export function resolveSvg(icon: SvgImport): string {
	if (typeof icon === "object" && "src" in icon) {
		return icon.src;
	}
	return icon.toString();
}
