Skip to content

Commit

Permalink
feat(emoji): create Emoji component
Browse files Browse the repository at this point in the history
  • Loading branch information
Clm-Roig committed Mar 18, 2022
1 parent b8b0c96 commit 70090a6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/Emoji/Emoji.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { FC } from 'react';

interface Props {
label?: string;
symbol: string;
}

const Emoji: FC<Props> = ({ label, symbol }) => (
<span
className="emoji"
role="img"
aria-label={label ? label : ''}
aria-hidden={label ? 'false' : 'true'}>
{symbol}
</span>
);
export default Emoji;

0 comments on commit 70090a6

Please sign in to comment.