Skip to content

Instantly share code, notes, and snippets.

@alangpierce
Created September 10, 2019 01:35
Show Gist options
  • Save alangpierce/7710d056b6ab3c0d81fbb11df813e290 to your computer and use it in GitHub Desktop.
Save alangpierce/7710d056b6ab3c0d81fbb11df813e290 to your computer and use it in GitHub Desktop.
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