enzostvs HF Staff commited on
Commit
c908126
·
1 Parent(s): 378e163

hide followup

Browse files
Files changed (1) hide show
  1. components/editor/ask-ai/index.tsx +18 -16
components/editor/ask-ai/index.tsx CHANGED
@@ -426,22 +426,24 @@ export function AskAI({
426
  open={openProModal}
427
  onClose={() => setOpenProModal(false)}
428
  />
429
- <div className="absolute top-0 right-0 -translate-y-[calc(100%+8px)] select-none text-xs text-neutral-400 flex items-center justify-center gap-2 bg-neutral-800 border border-neutral-700 rounded-md p-1 pr-2.5">
430
- <label
431
- htmlFor="follow-up-checkbox"
432
- className="flex items-center gap-1.5 cursor-pointer"
433
- >
434
- <Checkbox
435
- id="follow-up-checkbox"
436
- checked={isFollowUp}
437
- onCheckedChange={(e) => {
438
- setIsFollowUp(e === true);
439
- }}
440
- />
441
- Follow-Up
442
- </label>
443
- <FollowUpTooltip />
444
- </div>
 
 
445
  </div>
446
  <audio ref={audio} id="audio" className="hidden">
447
  <source src="/success.mp3" type="audio/mpeg" />
 
426
  open={openProModal}
427
  onClose={() => setOpenProModal(false)}
428
  />
429
+ {html !== defaultHTML && (
430
+ <div className="absolute top-0 right-0 -translate-y-[calc(100%+8px)] select-none text-xs text-neutral-400 flex items-center justify-center gap-2 bg-neutral-800 border border-neutral-700 rounded-md p-1 pr-2.5">
431
+ <label
432
+ htmlFor="follow-up-checkbox"
433
+ className="flex items-center gap-1.5 cursor-pointer"
434
+ >
435
+ <Checkbox
436
+ id="follow-up-checkbox"
437
+ checked={isFollowUp}
438
+ onCheckedChange={(e) => {
439
+ setIsFollowUp(e === true);
440
+ }}
441
+ />
442
+ Follow-Up
443
+ </label>
444
+ <FollowUpTooltip />
445
+ </div>
446
+ )}
447
  </div>
448
  <audio ref={audio} id="audio" className="hidden">
449
  <source src="/success.mp3" type="audio/mpeg" />