'use client'; import { StarsAndForks } from '@gitroom/frontend/components/analytics/stars.and.forks'; import { FC, useCallback } from 'react'; import { StarsTableComponent } from '@gitroom/frontend/components/analytics/stars.table.component'; import useSWR from 'swr'; import { useFetch } from '@gitroom/helpers/utils/custom.fetch'; import { LoadingComponent } from '@gitroom/frontend/components/layout/loading'; export const AnalyticsComponent: FC = () => { const fetch = useFetch(); const load = useCallback(async (path: string) => { return await (await fetch(path)).json(); }, []); const { isLoading: isLoadingAnalytics, data: analytics } = useSWR( '/analytics', load ); const { isLoading: isLoadingTrending, data: trending } = useSWR( '/analytics/trending', load ); if (isLoadingAnalytics || isLoadingTrending) { return ; } return (
{/*
*/} {/*

News Feed

*/} {/*
*/} {/*
*/} {/* Global*/} {/*
*/} {/*
*/} {/* My Feed*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/* */} {/*
*/} {/*
*/} {/*
Nevo David
*/} {/*
05/06/2024
*/} {/*
*/} {/*
O atual sistema político precisa mudar para valorizar o trabalho e garantir igualdade de oportunidad
*/} {/*
*/} {/*
See Tweet
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/* */} {/*
*/} {/*
*/} {/*
Nevo David
*/} {/*
05/06/2024
*/} {/*
*/} {/*
O atual sistema político precisa mudar para valorizar o trabalho e garantir igualdade de oportunidad
*/} {/*
*/} {/*
See Tweet
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/* */} {/*
*/} {/*
*/} {/*
Nevo David
*/} {/*
05/06/2024
*/} {/*
*/} {/*
O atual sistema político precisa mudar para valorizar o trabalho e garantir igualdade de oportunidad
*/} {/*
*/} {/*
See Tweet
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/* */} {/*
*/} {/*
*/} {/*
Nevo David
*/} {/*
05/06/2024
*/} {/*
*/} {/*
O atual sistema político precisa mudar para valorizar o trabalho e garantir igualdade de oportunidad
*/} {/*
*/} {/*
See Tweet
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/* */} {/*
*/} {/*
*/} {/*
Nevo David
*/} {/*
05/06/2024
*/} {/*
*/} {/*
O atual sistema político precisa mudar para valorizar o trabalho e garantir igualdade de oportunidad
*/} {/*
*/} {/*
See Tweet
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/} {/*
*/}
); };