mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 16:23:50 +02:00
12 lines
260 B
JavaScript
12 lines
260 B
JavaScript
import { computed } from 'vue';
|
|
|
|
export function useActivityStats(activityData) {
|
|
const totalOnlineTime = computed(() => {
|
|
return activityData.value?.reduce((acc, item) => acc + item.time, 0);
|
|
});
|
|
|
|
return {
|
|
totalOnlineTime
|
|
};
|
|
}
|