enzostvs HF Staff commited on
Commit
aee861b
·
1 Parent(s): 5d41540

add banner

Browse files
Files changed (1) hide show
  1. components/editor/ask-ai/index.tsx +11 -1
components/editor/ask-ai/index.tsx CHANGED
@@ -4,7 +4,7 @@ import { useState, useMemo, useRef } from "react";
4
  import classNames from "classnames";
5
  import { toast } from "sonner";
6
  import { useLocalStorage, useUpdateEffect } from "react-use";
7
- import { ArrowUp, ChevronDown, Crosshair } from "lucide-react";
8
  import { FaStopCircle } from "react-icons/fa";
9
 
10
  import ProModal from "@/components/pro-modal";
@@ -264,6 +264,16 @@ export function AskAI({
264
  </div>
265
  )}
266
  <div className="w-full relative flex items-center justify-between">
 
 
 
 
 
 
 
 
 
 
267
  {isAiWorking && (
268
  <div className="absolute bg-neutral-800 rounded-lg top-0 left-4 w-[calc(100%-30px)] h-full z-1 flex items-start pt-3.5 justify-between max-lg:text-sm">
269
  <div className="flex items-center justify-start gap-2">
 
4
  import classNames from "classnames";
5
  import { toast } from "sonner";
6
  import { useLocalStorage, useUpdateEffect } from "react-use";
7
+ import { ArrowUp, ChevronDown, Crosshair, X } from "lucide-react";
8
  import { FaStopCircle } from "react-icons/fa";
9
 
10
  import ProModal from "@/components/pro-modal";
 
264
  </div>
265
  )}
266
  <div className="w-full relative flex items-center justify-between">
267
+ {pages.length === 1 && (
268
+ <div className="border border-sky-500/20 bg-sky-500/10 text-sky-500 pl-2 pr-4 py-1.5 text-xs rounded-full absolute top-0 -translate-y-[calc(100%+8px)] left-0 max-w-max z-10 flex items-center justify-start gap-2">
269
+ <span className="rounded-full text-[10px] font-semibold bg-white text-neutral-900 px-1.5 py-0.5">
270
+ NEW
271
+ </span>
272
+ <p className="text-sm">
273
+ DeepSite can now create multiple pages at once. Try it!
274
+ </p>
275
+ </div>
276
+ )}
277
  {isAiWorking && (
278
  <div className="absolute bg-neutral-800 rounded-lg top-0 left-4 w-[calc(100%-30px)] h-full z-1 flex items-start pt-3.5 justify-between max-lg:text-sm">
279
  <div className="flex items-center justify-start gap-2">