non-fungible-apps/ui/src/components/nfa-icon/nfa-icon.tsx

18 lines
347 B
TypeScript

import { NFAIconStyles as NS } from './nfa-icon.styles';
type NFAIconProps = {
image: string;
color: string;
};
export const NFAIcon: React.FC<NFAIconProps> = ({
image,
color,
}: NFAIconProps) => {
return (
<NS.Container css={{ backgroundColor: color }}>
<NS.Image src={image} />
</NS.Container>
);
};