"use client"; import type { FC } from "react"; import React from "react"; import { observer } from "mobx-react"; import Link from "next/link"; import { useTranslation } from "@plane/i18n"; // ui import { Button, getButtonStyling } from "@plane/propel/button"; import { Row } from "@plane/ui"; // components import { Logo } from "@/components/common/logo"; import { ProjectFeaturesList } from "@/components/project/settings/features-list"; // hooks import { useProject } from "@/hooks/store/use-project"; type Props = { workspaceSlug: string; projectId: string | null; onClose: () => void; }; export const ProjectFeatureUpdate: FC = observer((props) => { const { workspaceSlug, projectId, onClose } = props; // store hooks const { t } = useTranslation(); const { getProjectById } = useProject(); if (!workspaceSlug || !projectId) return null; const currentProjectDetails = getProjectById(projectId); if (!currentProjectDetails) return null; return ( <>
{t("congrats")}

{currentProjectDetails.name}

{" "} {t("created").toLowerCase()}.
{t("open_project")}
); });