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/components/share/project-link.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
import Link from "next/link";
7
8
interface Props {
9
project_id: string;
10
title?: string;
11
}
12
13
export default function ProjectLink({ project_id, title }: Props) {
14
return (
15
<Link href={`/share/projects/${project_id}`}>
16
{title?.trim() ? title : "A Project"}
17
</Link>
18
);
19
}
20
21