"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.FloatingActionButton = FloatingActionButton;
var _reactNative = require("react-native");
var _reactNativeSvg = require("react-native-svg");
var _styles = require("./styles");
var _icons = require("../../../core/assets/icons");
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function FloatingActionButton({
  icon,
  ...props
}) {
  const {
    styles,
    theme
  } = (0, _styles.useStyles)();
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.container
  }, /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({}, props, {
    style: styles.button
  }), /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    width: "32",
    height: "32",
    xml: icon || (0, _icons.plus)(),
    color: theme.colors.background
  })));
}
//# sourceMappingURL=index.js.map