import React, { useEffect, useRef, useState } from 'react';
import { IconProp } from '@fortawesome/fontawesome-svg-core';

export interface IItemsActionSheetOption {
   text: string;
   key: string;
   icon?: IconProp;
   iconColor?: string;
   cancel?: boolean;
}

export interface IItemsActionSheet {
   options: IItemsActionSheetOption[];
   cancelButtonIndex?: number;
   onPress: (el: IItemsActionSheetOption, index: number) => void;
}

export interface IActionSheet extends React.FunctionComponent<any> {
   show?: (options: IItemsActionSheet) => void;
}
