* docs: add jsdoc * feat: change enums to as const objects * chore(test): add themeColors.test.ts * fix: fix tests and bugs with strings.ts util * fix: path alias imports and tsconfig file bug * fix: remove --max-warnings 0
18 lines
443 B
TypeScript
18 lines
443 B
TypeScript
import clsx from 'clsx';
|
|
import React from 'react';
|
|
|
|
import styles from './Spinner.module.scss';
|
|
|
|
type Props = {
|
|
testId?: string;
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
};
|
|
|
|
/**
|
|
* A simple spinner component that can be used to indicate loading.
|
|
*/
|
|
export default function Spinner({ className, testId, style }: Props) {
|
|
return <div data-testid={testId} style={style} className={clsx(styles.spinner, className)} />;
|
|
}
|