UNPKG

@atlaskit/icon

Version:

An icon is a symbol representing a command, device, directory, or common action.

17 lines (16 loc) • 665 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useAnimatedIconTrigger = void 0; var _react = require("react"); var _animatedIconContext = require("./animated-icon-context"); /** * Returns the state of the nearest `AnimatedIconTrigger`, or `undefined` when there is none. * * The trigger only signals. Each animated icon decides how to respond, calls `start()` when it * begins, and calls the `done` function it returns when it has finished. */ var useAnimatedIconTrigger = exports.useAnimatedIconTrigger = function useAnimatedIconTrigger() { return (0, _react.useContext)(_animatedIconContext.AnimatedIconContext); };