import React, { FC } from 'react'; import { ArrowUp, ArrowDown } from 'react-feather'; import { Button } from 'antd'; import Languages from 'app/features/global/services/languages-service'; import './notifications.scss'; type PropsType = { icon?: React.ReactNode; iconSize?: number; position: 'top' | 'bottom'; type?: 'primary' | 'secondary' | 'warning' | 'important' | undefined; children?: JSX.Element | string; onClick?: ((event: React.MouseEvent) => void) | undefined; }; const HiddenNotificationsButton: FC = ({ children, icon, iconSize, position, type, onClick, }) => { const setDefaultIcon = (): React.ReactNode => { const defaultSize = iconSize ? iconSize : 16; switch (position) { case !icon && 'top': return ; case !icon && 'bottom': return ; case icon: case icon && 'top': case icon && 'bottom': return icon; } }; return ( ); }; export default HiddenNotificationsButton;