import React from 'react'; import { ContainerPressable, IconBox, } from './styles'; import CustomElasticButtonAnimation from './useAnimation'; export interface CustomElasticButtonProps { initIcon: JSX.Element; endIcon: JSX.Element; height?: number; width?: number; activeOpacity?: number; onPress?: any; } export function CustomElasticButton(menuProps: CustomElasticButtonProps) { const { initIconAnimatedStyle, endIconAnimatedStyle, toogleAnimations } = CustomElasticButtonAnimation(); return ( { toogleAnimations(); menuProps.onPress && menuProps.onPress() }} > {menuProps.initIcon} {menuProps.endIcon} ); } export default CustomElasticButton;