UNPKG

@coin-voyage/paykit

Version:

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

8 lines (7 loc) 378 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { AlertContainer, IconContainer } from "./styles"; const Alert = ({ children, error, icon }) => { return (_jsxs(AlertContainer, { "$error": error, children: [icon && _jsx(IconContainer, { children: icon }), _jsx("div", { children: children })] })); }; Alert.displayName = "Alert"; export default Alert;