Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export interface ActiveEnzymeProps {
color: string;
name: string;
}
function ActiveEnzyme({color, name}: ActiveEnzymeProps): JSX.Element {
return (
<>
<td className="mono">{name}</td>
<td>
<div style={{backgroundColor: color}} className="swatch" />
</td>
</>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment