function gif(r, g, b) {
return 'R0lGODlhAQABAIAB' +
(new Buffer([0, r, g, b, 0, 0])).toString('base64') +
'ACwAAAAAAQABAAACAkQBADs=';
}
// then use: data:image/gif;base64,R0lGODlhAQABAIABAPLy8gAAACwAAAAAAQABAAACAkQBADs=
https://codepen.io/anthonydugois/pen/mewdyZ
type InferredProps = React.ComponentProps<typeof MyComponent>;