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); }
import { Pressable, View } from 'react-native';
import { SvgXml } from 'react-native-svg';
import { useStyles } from './styles';
import { plus } from '../../../core/assets/icons';
export function FloatingActionButton({
  icon,
  ...props
}) {
  const {
    styles,
    theme
  } = useStyles();
  return /*#__PURE__*/React.createElement(View, {
    style: styles.container
  }, /*#__PURE__*/React.createElement(Pressable, _extends({}, props, {
    style: styles.button
  }), /*#__PURE__*/React.createElement(SvgXml, {
    width: "32",
    height: "32",
    xml: icon || plus(),
    color: theme.colors.background
  })));
}
//# sourceMappingURL=index.js.map