import React from 'react'; import BaseButton from './BaseButton'; interface IToggleEmojiButton { theme: string; show: boolean; open(): void; close(): void; } const ToggleEmojiButton = React.memo(({ theme, show, open, close }: IToggleEmojiButton) => { if (show) { return ( ); } return ( ); }); export default ToggleEmojiButton;