import React from 'react';
import { isEmpty } from 'lodash';
import { moderateScale } from 'react-native-size-matters';
import If from '../If';
import { Icon, Title, Wrapper } from './styles';
const FAB = ({ size = moderateScale(70), id, accessibility, title, color, iconName, iconColor, iconSize, onPress, relativePos = false, hasShadow = false, ...rest }) => (<Wrapper id={id || accessibility} accessibility={accessibility} onPress={onPress} size={size} color={color} relativePos={relativePos} hasShadow={hasShadow} {...rest}>
    <Icon id={`icon_${id || accessibility}`} name={iconName || 'plus'} accessibility={accessibility} iconColor={iconColor} iconSize={iconSize}/>
    <If condition={!isEmpty(title)}>
      <Title accessibility={title || ''}>{title}</Title>
    </If>
  </Wrapper>);
export default FAB;
//# sourceMappingURL=index.js.map