import styled from 'styled-components';
import {
  CopyOutlined,
  DollarOutlined,
  LoadingOutlined,
  WalletOutlined,
  QrcodeOutlined,
  QuestionCircleOutlined,
  SettingOutlined,
  LockOutlined
} from '@ant-design/icons';
import { Image } from 'antd';
import { currency } from './Ticker';

export const CashLoadingIcon = <LoadingOutlined className="cashLoadingIcon" />;

export const CashReceivedNotificationIcon = () => (
  <Image height={'35px'} width={'35px'} src={currency.logo} preview={false} />
);
export const TokenReceivedNotificationIcon = () => (
  <Image src={currency.tokenLogo} height={'33px'} width={'30px'} preview={false} />
);

export const ThemedCopyOutlined = styled(CopyOutlined)`
  color: ${props => props.theme.icons.outlined} !important;
`;
export const ThemedDollarOutlined = styled(DollarOutlined)`
  color: ${props => props.theme.icons.outlined} !important;
`;
export const ThemedWalletOutlined = styled(WalletOutlined)`
  color: ${props => props.theme.icons.outlined} !important;
`;
export const ThemedQrcodeOutlined = styled(QrcodeOutlined)`
  color: ${props => props.theme.icons.outlined} !important;
`;
export const ThemedSettingOutlined = styled(SettingOutlined)`
  color: ${props => props.theme.icons.outlined} !important;
`;
export const ThemedLockOutlined = styled(LockOutlined)`
  color: ${props => props.theme.icons.outlined} !important;
`;

export const LoadingBlock = styled.div`
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  flex-direction: column;
  svg {
    width: 50px;
    height: 50px;
    fill: ${props => props.theme.primary};
  }
`;

export const ThemedQuerstionCircleOutlinedFaded = styled(QuestionCircleOutlined)`
  color: ${props => props.theme.icons.outlinedFaded} !important;
`;

export const CashLoader = () => (
  <LoadingBlock>
    <LoadingOutlined />
  </LoadingBlock>
);
