@rc-component/trigger
Version:
base abstract trigger component for react
6 lines (5 loc) • 353 B
TypeScript
import type { ActionType } from '../interface';
type InternalActionType = ActionType | 'touch';
type ActionTypes = InternalActionType | InternalActionType[];
export default function useAction(action: ActionTypes, showAction?: ActionTypes, hideAction?: ActionTypes): [showAction: Set<InternalActionType>, hideAction: Set<InternalActionType>];
export {};