// withHooks

import { LibIcon } from 'esoftplay/cache/lib/icon/import';
import { LibStyle } from 'esoftplay/cache/lib/style/import';
import React from 'react';
import { TouchableOpacity } from 'react-native';


export interface EventFabArgs {
  
}
export interface EventFabProps {
  onPress: () => void,
  icon: any,
  colorText?: string,
  colorBg?: string
}
export default function m(props: EventFabProps): any {
  return (
    <TouchableOpacity onPress={props.onPress} style={{ alignContent: 'center', alignItems: 'center', justifyContent: 'center', height: 50, width: 50, borderRadius: 25, backgroundColor: props.colorBg ? props.colorBg : '#51b596', position: 'absolute', ...LibStyle.elevation(3), bottom: 20, right: 20 }}>
      <LibIcon name={props.icon} color={props.colorText ? props.colorText : "#fff"} />
    </TouchableOpacity>
  )
}