Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/components/share/site-name.tsx
1450 views
1
import useCustomize from "lib/use-customize";
2
3
export default function SiteName({ full }: { full?: boolean }) {
4
const { siteName, siteDescription } = useCustomize();
5
if (full) {
6
return (
7
<>
8
{siteName}: {siteDescription}
9
</>
10
);
11
}
12
return <>{siteName}</>;
13
}
14
15