feat: replace unicode tool icons with Lucide icons (Globe, Cloud, Palette, Code2, BarChart2)
Made-with: Cursor
This commit is contained in:
@@ -6,6 +6,7 @@ import Link from "next/link";
|
||||
import { signOut, useSession } from "next-auth/react";
|
||||
import { CooChat } from "./coo-chat";
|
||||
import { Toaster } from "sonner";
|
||||
import { Globe, Cloud, Palette, Code2, BarChart2, MoreHorizontal } from "lucide-react";
|
||||
|
||||
interface ProjectShellProps {
|
||||
children: ReactNode;
|
||||
@@ -34,12 +35,13 @@ const SECTIONS = [
|
||||
|
||||
// Tool icons shown to the right of section pills
|
||||
const TOOLS = [
|
||||
{ id: "preview", icon: "↗", label: "Preview", title: "Open preview" },
|
||||
{ id: "tasks", icon: "≡", label: "Tasks", title: "Agent tasks" },
|
||||
{ id: "code", icon: "</>", label: "Code", title: "Code" },
|
||||
{ id: "design", icon: "◈", label: "Design", title: "Design" },
|
||||
{ id: "backend", icon: "⬡", label: "Backend", title: "Backend / Infra" },
|
||||
] as const;
|
||||
{ id: "preview", Icon: Globe, label: "Preview", title: "Open preview" },
|
||||
{ id: "backend", Icon: Cloud, label: "Backend", title: "Backend / Infra" },
|
||||
{ id: "design", Icon: Palette, label: "Design", title: "Design" },
|
||||
{ id: "code", Icon: Code2, label: "Code", title: "Code" },
|
||||
{ id: "analytics",Icon: BarChart2, label: "Analytics", title: "Analytics" },
|
||||
{ id: "more", Icon: MoreHorizontal, label: "More", title: "More options" },
|
||||
];
|
||||
|
||||
export function ProjectShell({
|
||||
children,
|
||||
@@ -140,17 +142,15 @@ export function ProjectShell({
|
||||
|
||||
{/* Tool icons */}
|
||||
<div style={{ display: "flex", alignItems: "center", gap: 2, marginRight: 12 }}>
|
||||
{TOOLS.map(t => (
|
||||
{TOOLS.map(({ id, Icon, title }) => (
|
||||
<button
|
||||
key={t.id}
|
||||
title={t.title}
|
||||
key={id}
|
||||
title={title}
|
||||
style={{
|
||||
width: 32, height: 32, border: "none", borderRadius: 7,
|
||||
background: "transparent", cursor: "pointer",
|
||||
display: "flex", alignItems: "center", justifyContent: "center",
|
||||
fontSize: t.icon === "</>" ? "0.6rem" : "0.78rem",
|
||||
color: "#9a9490", fontFamily: "Outfit, sans-serif",
|
||||
fontWeight: 600, letterSpacing: t.icon === "</>" ? "-0.02em" : "normal",
|
||||
color: "#9a9490",
|
||||
transition: "background 0.1s, color 0.1s",
|
||||
}}
|
||||
onMouseEnter={e => {
|
||||
@@ -162,7 +162,7 @@ export function ProjectShell({
|
||||
(e.currentTarget as HTMLElement).style.color = "#9a9490";
|
||||
}}
|
||||
>
|
||||
{t.icon}
|
||||
<Icon size={15} strokeWidth={1.75} />
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user