UNPKG

@audira/carbon-react-native

Version:

Build React Native apps with component and shared patterns using Carbon

49 lines (48 loc) 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Success = void 0; var _react = require("react"); var _index = require("../../_status-hooks/index.js"); var _index2 = require("../../_variants/index.js"); var _jsxRuntime = require("react/jsx-runtime"); const Success = exports.Success = /*#__PURE__*/(0, _react.forwardRef)(function Success({ color, iconProps, iconCloseProps, titleStyle: titleStyleProp, leftBarStyle: leftBarStyleProp, style: styleProp, ...props }, ref) { const { Icon, iconProps: iconPropsData, iconCloseProps: iconClosePropsData, titleStyle, leftBarStyle, style } = (0, _index.useSuccess)({ color, transparentBorderColor: false }); return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.ToastVariant, { ...props, color: color, Icon: Icon, iconProps: { ...iconProps, ...iconPropsData }, iconCloseProps: { ...iconCloseProps, ...iconClosePropsData }, titleStyle: [titleStyle, titleStyleProp], leftBarStyle: [leftBarStyle, leftBarStyleProp], style: [style, styleProp], ref: ref }); }); //# sourceMappingURL=Success.js.map