mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
22 lines
522 B
TypeScript
22 lines
522 B
TypeScript
import React, { FC } from 'react';
|
|
|
|
import { BorisUsageStats } from '~/types/boris';
|
|
|
|
import { BorisStatsBackend } from '../BorisStatsBackend';
|
|
import { BorisStatsGit } from '../BorisStatsGit';
|
|
|
|
interface IProps {
|
|
stats: BorisUsageStats;
|
|
isLoading: boolean;
|
|
}
|
|
|
|
const BorisStats: FC<IProps> = ({ stats, isLoading }) => {
|
|
return (
|
|
<>
|
|
<BorisStatsBackend stats={stats.backend} isLoading={isLoading} />
|
|
<BorisStatsGit issues={stats.issues} isLoading={isLoading} />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export { BorisStats };
|