Create a Phosphor icons array, which can be later on accessed by index in JSX
Hi I'm creating a Slider Component in which I'd like to render some content (phosphor icon included). Slider hook, which I've created, gives me access to the current index at which the slider points. Would it be possible to render an icon by referencing it from icons array with current slider index? I've tried it already, but types do not match __Type 'ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>' is not assignable to type 'ReactNode'__ . Thank you for your response.