botframework-webchat-component
Version:
React component of botframework-webchat
17 lines (11 loc) • 503 B
JavaScript
import { hooks } from 'botframework-webchat-api';
import classNames from 'classnames';
import React from 'react';
import useStyleSet from '../../hooks/useStyleSet';
const { useDirection } = hooks;
const SpinnerAnimation = () => {
const [{ spinnerAnimation: spinnerAnimationStyleSet }] = useStyleSet();
const [direction] = useDirection();
return <div className={classNames(spinnerAnimationStyleSet + '', direction === 'rtl' && 'webchat__spinner--rtl')} />;
};
export default SpinnerAnimation;