| 1 | | − | import { ArrowUpRight, Box, ChevronLeft, ChevronRight, LayoutGrid, List, Lock, Rocket, Search } from "lucide-react"; |
| 1 | + | import { ArrowUpRight, ChevronLeft, ChevronRight, LayoutGrid, List, Rocket, Search } from "lucide-react"; |
| 2 | 2 | | import { type KeyboardEvent, useEffect, useRef, useState } from "react"; |
| 3 | 3 | | import { Form, Link, useLocation, useNavigation, useSubmit } from "react-router"; |
| 4 | 4 | | |
| ⋯ |
| 28 | 28 | | readProjectQuery, |
| 29 | 29 | | } from "../../lib/project-list"; |
| 30 | 30 | | import { kindLabel, primaryLink } from "../../lib/project-kind"; |
| 31 | + | import { ProjectIcon } from "../../components/project-icon"; |
| 31 | 32 | | import { deployments, projects } from "../../lib/services.server"; |
| 32 | 33 | | import { getViewer, roleIn } from "../../lib/session.server"; |
| 33 | 34 | | import { workspaceProjects } from "../../lib/workspace-projects.server"; |
| ⋯ |
| 120 | 121 | | return ( |
| 121 | 122 | | <li className="group relative flex items-center gap-3 px-4 py-3 transition-colors focus-within:bg-raised/60 hover:bg-raised/60"> |
| 122 | 123 | | <span className="flex size-8 shrink-0 items-center justify-center rounded-md bg-raised text-muted ring-1 ring-line"> |
| 123 | | − | {project.private ? <Lock size={14} /> : <Box size={14} />} |
| 124 | + | <ProjectIcon kind={project.kind} size={14} /> |
| 124 | 125 | | </span> |
| 125 | 126 | | <div className="min-w-0 grow"> |
| 126 | 127 | | <div className="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1"> |
| ⋯ |
| 160 | 161 | | <li className="group relative flex flex-col rounded-2xl border border-line bg-surface p-5 transition-colors focus-within:border-line-strong hover:border-line-strong"> |
| 161 | 162 | | <div className="flex items-start gap-3"> |
| 162 | 163 | | <span className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-raised text-muted ring-1 ring-line"> |
| 163 | | − | {project.private ? <Lock size={15} /> : <Box size={15} />} |
| 164 | + | <ProjectIcon kind={project.kind} size={15} /> |
| 164 | 165 | | </span> |
| 165 | 166 | | <div className="min-w-0 grow"> |
| 166 | 167 | | <Link |