CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/stars.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
// Show all the public paths that you have starred.
7
8
import getStars from "lib/share/get-stars";
9
import withCustomize from "lib/with-customize";
10
import AccountStars from "components/account/stars";
11
12
export default function Stars(props) {
13
return <AccountStars {...props} />;
14
}
15
16
export async function getServerSideProps(context) {
17
return await withCustomize({
18
context,
19
props: { stars: await getStars(context.req) },
20
});
21
}
22
23