import * as React from 'react'; import classNames from 'classnames'; import { getSheetCoordinates, SkinToneKey } from './lib'; export type OwnProps = { inline?: boolean; shortName: string; skinTone?: SkinToneKey | number; size?: 16 | 20 | 28 | 32 | 64 | 66; }; export type Props = OwnProps & Pick, 'style' | 'className'>; export const Emoji = React.memo( React.forwardRef( ( { style = {}, size = 28, shortName, skinTone, inline, className }: Props, ref ) => { const [sheetX, sheetY] = getSheetCoordinates(shortName, skinTone); const x = -(size * sheetX); const y = -(size * sheetY); return (
); } ) );