UNPKG

@coin-voyage/paykit

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

53 lines (49 loc) 1.29 kB
import { motion } from "framer-motion"; import { css } from "styled-components"; import defaultTheme from "../../../lib/config/default-theme"; import styled from "../../../styles/styled"; export const AlertContainer = styled(motion.div) ` display: flex; gap: 8px; position: relative; border-radius: 9px; margin: 0 auto; padding: 10px; text-align: left; font-size: 14px; line-height: 17px; font-weight: 400; max-width: 260px; min-width: 100%; border-radius: var(--ck-alert-border-radius, 12px); color: var(--ck-alert-color, var(--ck-body-color-muted)); background: var(--ck-alert-background, var(--ck-body-background-secondary)); box-shadow: var(--ck-alert-box-shadow, var(--ck-body-box-shadow)); @media only screen and (max-width: ${defaultTheme.mobileWidth}px) { padding: 16px; font-size: 16px; line-height: 21px; border-radius: 24px; text-align: center; } ${($error) => { if ($error) { return css ` color: #fff; background: var(--ck-body-color-danger, red); `; } }} `; export const IconContainer = styled(motion.div) ` width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; svg { display: block; width: 100%; height: auto; } `;