import React from 'react';
import cx from 'classnames';

interface Props {
  extraClass?: string;
}

export const Spinner = ({ extraClass }: Props) => {
  const className = cx('c-spinner', extraClass);

  return <div className={className}>
    <span className={'c-spinner__bar'} />
    <span className={'c-spinner__bar'} />
    <span className={'c-spinner__bar'} />
  </div>;
};
