diff --git a/studio/src/components/dashboard/NewFeaturesPopup.tsx b/studio/src/components/dashboard/NewFeaturesPopup.tsx new file mode 100644 index 0000000000..ec1b2377f1 --- /dev/null +++ b/studio/src/components/dashboard/NewFeaturesPopup.tsx @@ -0,0 +1,204 @@ +import React from "react"; +import Link from "next/link"; +import { Cross2Icon } from "@radix-ui/react-icons"; +import { Button } from "../ui/button"; +import { MdArrowOutward } from "react-icons/md"; +import { useNewFeaturesPopupDisabled } from "@/hooks/use-new-features-popup-disabled"; + +export default function NewFeaturesPopup() { + const [isPopupDisabled, setDisablePopup] = useNewFeaturesPopupDisabled(); + + const handleClosePopup = () => { + setDisablePopup("true"); + }; + + // Don't render the popup if it's been dismissed + if (isPopupDisabled) { + return null; + } + + return ( +
+
+
+
+

+ Cosmo Connect +
+ is here! +

+ +
+

+ A new way to unify your +
+ API ecosystem +

+
+ + Learn more + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ ); +} diff --git a/studio/src/components/layout/sidenav.tsx b/studio/src/components/layout/sidenav.tsx index 0e92fc4db5..ee5945b374 100644 --- a/studio/src/components/layout/sidenav.tsx +++ b/studio/src/components/layout/sidenav.tsx @@ -26,6 +26,7 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "../ui/dropdown-menu"; +import NewFeaturesPopup from "../dashboard/NewFeaturesPopup"; export type NavLink = { title: ReactNode; @@ -52,13 +53,19 @@ const MobileNav = () => {