Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/frontend/course/shared-project/delete-shared-project.tsx
Views: 687
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Button, Card, Popconfirm } from "antd";6import { FormattedMessage, useIntl } from "react-intl";78import { Icon } from "@cocalc/frontend/components";9import { course } from "@cocalc/frontend/i18n";1011export function DeleteSharedProjectPanel({ actions, settings, close }) {12const intl = useIntl();1314if (!settings.get("shared_project_id")) {15return (16<Card17title={intl.formatMessage({18id: "course.delete-shared-project.no_shared_project",19defaultMessage: "No Shared Project",20})}21></Card>22);23}2425return (26<Card27title={28<Popconfirm29title={intl.formatMessage({30id: "course.delete-shared-project.confirmation",31defaultMessage:32"Are you sure you want to delete the shared project?",33})}34okText="Yes"35cancelText="No"36onConfirm={() => {37actions.shared_project.delete();38close?.();39}}40>41<Button danger>42<Icon name="trash" />{" "}43{intl.formatMessage(course.delete_shared_project)}...44</Button>45</Popconfirm>46}47>48<FormattedMessage49id="course.delete-shared-project.message"50defaultMessage={`If you would like to delete the shared projects that was created for this course,51you may do so by clicking above.52All students will be removed from the deleted shared project.`}53/>54</Card>55);56}575859