import type { Sprite, SpriteProps } from '@glideapps/glide-data-grid';

export const SpriteImage = (props: { alt?:string; sprite: Sprite, } & Partial<SpriteProps>) => {
  return (
    <img alt={props.alt ?? "Sprite Image"}  src={`data:image/svg+xml;utf8,${props.sprite({ ...props, sprite: undefined } as any)}`} />
  );
};
