Created
September 10, 2019 01:35
-
-
Save alangpierce/7710d056b6ab3c0d81fbb11df813e290 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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