mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
21 lines
617 B
TypeScript
21 lines
617 B
TypeScript
import React, { FC, SVGAttributes } from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import { describeArc } from '~/utils/dom';
|
|
|
|
import styles from './styles.module.scss';
|
|
|
|
interface IProps extends SVGAttributes<SVGElement> {
|
|
size: number;
|
|
className?: string;
|
|
}
|
|
|
|
const LoaderCircleInner: FC<IProps> = ({ size, className, ...props }) => (
|
|
<svg className={classNames(styles.icon, className)} width={size} height={size} {...props}>
|
|
<path d={describeArc(size / 2, size / 2, size / 2, 0, 90)} />
|
|
<path d={describeArc(size / 2, size / 2, size / 2, 180, 270)} />
|
|
</svg>
|
|
);
|
|
|
|
export { LoaderCircleInner };
|