// Copyright 2019-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import classNames from 'classnames'; export const SpinnerSvgSizes = ['small', 'normal'] as const; export type SpinnerSvgSize = typeof SpinnerSvgSizes[number]; export const SpinnerDirections = [ 'outgoing', 'incoming', 'on-background', 'on-progress-dialog', 'on-avatar', ] as const; export type SpinnerDirection = typeof SpinnerDirections[number]; export type Props = { moduleClassName?: string; direction?: SpinnerDirection; size?: string; svgSize: SpinnerSvgSize; }; export const Spinner = ({ moduleClassName, size, svgSize, direction, }: Props): JSX.Element => (
);