import type { Component, JSX } from "solid-js" import { createMemo, splitProps } from "solid-js" import sprite from "./provider-icons/sprite.svg" import { iconNames, type IconName } from "./provider-icons/types" export type ProviderIconProps = JSX.SVGElementTags["svg"] & { id: string } export const ProviderIcon: Component = (props) => { const [local, rest] = splitProps(props, ["id", "class", "classList"]) const resolved = createMemo(() => (iconNames.includes(local.id as IconName) ? local.id : "synthetic")) return ( ) }