PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.8.1
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.8.1
8.8.1 8.8.0 8.7.9 8.7.8 8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 All 537 releases
chatbot / addons / automator / src / components / Header.jsx

Header.jsx in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 8.8.1, at addons/automator/src/components/Header.jsx

52 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 "use client";
2
3 import React from "react";
4 import { ChevronLeft, Play, Settings, MoreVertical, ExternalLink } from "lucide-react";
5 import { Button } from "./ui/Button";
6
7 export function Header({ workflowName, onNameChange, onBack, onSave, onToggleLogs }) {
8 return (
9 <header className="h-14 bg-card border-b border-border flex items-center justify-between px-4">
10 <div className="flex items-center gap-4">
11 <div className="flex items-center gap-2 text-sm text-muted-foreground">
12 <input
13 type="text"
14 value={workflowName}
15 onChange={(e) => onNameChange(e.target.value)}
16 className="font-medium text-card-foreground bg-transparent border-none focus:outline-none focus:ring-1 focus:ring-primary rounded px-1"
17 placeholder="Untitled Flow"
18 />
19 </div>
20
21 <Button variant="outline" size="sm" className="gap-2 bg-transparent" onClick={onBack}>
22 <ChevronLeft className="h-4 w-4" />
23 Back
24 </Button>
25
26 <Button size="sm" className="gap-2 bg-primary text-primary-foreground hover:bg-primary/90" onClick={onSave}>
27 <Play className="h-4 w-4" />
28 Save Flow
29 </Button>
30
31 <div className="flex items-center gap-1">
32 <div className="w-4 h-4 rounded-full border-2 border-muted-foreground/30" />
33 </div>
34 </div>
35
36 <div className="flex items-center gap-2">
37 <Button variant="outline" size="sm" className="gap-2 bg-transparent">
38 Try Pro
39 <ExternalLink className="h-3 w-3" />
40 </Button>
41
42 <Button variant="outline" size="sm" className="gap-2 bg-transparent" onClick={onToggleLogs}>
43 <Settings className="h-4 w-4" />
44 Logs
45 </Button>
46 </div>
47 </header>
48 );
49 }
50
51 export default Header;
52