feat: add preview panel button

This commit is contained in:
Akhileshrangani4
2024-10-12 17:55:49 -04:00
parent 6ea86afc70
commit f863f2f763
2 changed files with 18 additions and 12 deletions

View File

@ -4,6 +4,7 @@ import {
Link,
RotateCw,
TerminalSquare,
UnfoldVertical,
} from "lucide-react"
import { useEffect, useRef, useState, useImperativeHandle, forwardRef } from "react"
import { toast } from "sonner"
@ -40,16 +41,14 @@ ref: React.Ref<{
<div className="text-xs">Preview</div>
<div className="flex space-x-1 translate-x-1">
{collapsed ? (
<PreviewButton disabled onClick={() => { }}>
<TerminalSquare className="w-4 h-4" />
<PreviewButton onClick={open}>
<UnfoldVertical className="w-4 h-4" />
</PreviewButton>
) : (
<>
{/* Removed the unfoldvertical button since we have the same thing via the run button.
<PreviewButton onClick={open}>
<UnfoldVertical className="w-4 h-4" />
</PreviewButton> */}
</PreviewButton>
<PreviewButton
onClick={() => {