Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function Identicon ({ address, sixPoint, size }: Props): React.ReactElement {
return (
);
}
createSvgHtml: function (): void {
const circles = generateIcon(this.address).map(({ cx, cy, fill, r }): string =>
`
public render (): React.ReactNode {
const { address, className, sixPoint, size, style } = this.props;
return (
<div style="{style}">
<svg viewBox="0 0 64 64" height="{size}" width="{size}" name="{address}" id="{address}">
{generateIcon(address, sixPoint).map(this.renderCircle)}
</svg>
</div>
);
}