import { PopoverElementProps } from './types'; import PopoverElementStyles from './PopoverElement.styles'; import { Icon, iconTypes } from '../Icon'; import React from 'react'; const { DivContainerStyled, DivStyled, DivImageStyled, TextStyled } = PopoverElementStyles; const PopoverElement: React.FC = ({ backgroundColor = 'transparent', height, icon = iconTypes.check, iconColor = 'white', iconSize = 20, id, onClick, text = 'Text', textColor = 'white', textSize = 14, width, ...props }: PopoverElementProps) => { return ( { { onClick ? onClick() : ''; } }} > {icon ? ( ) : ( '' )} {text} ); }; export default PopoverElement;