MCPcopy Create free account
hub / github.com/anonymousRAID/OSINT-Mapping-Tool / ProjectViewInner

Function ProjectViewInner

src/components/ProjectView.jsx:19–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19function ProjectViewInner() {
20 const { project, saveProject, closeProject } = useProject();
21 const { tab, setTab } = useNavigation();
22
23 return (
24 <div className="project-view">
25 <header className="project-topbar">
26 <div className="topbar-left">
27 <button
28 className="icon-btn"
29 onClick={closeProject}
30 title="Back to projects"
31 aria-label="Back to projects"
32 >
33 <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
34 <path d="M19 12H5M12 19l-7-7 7-7" />
35 </svg>
36 </button>
37 <div className="project-title">
38 <div className="project-name">{project.name}</div>
39 {project.target?.name && (
40 <div className="project-target">Target: {project.target.name}</div>
41 )}
42 </div>
43 </div>
44
45 <nav className="tab-switcher" role="tablist">
46 <button
47 role="tab"
48 aria-selected={tab === 'info'}
49 className={`tab-button ${tab === 'info' ? 'active' : ''}`}
50 onClick={() => setTab('info')}
51 >
52 Information
53 </button>
54 <button
55 role="tab"
56 aria-selected={tab === 'map'}
57 className={`tab-button ${tab === 'map' ? 'active' : ''}`}
58 onClick={() => setTab('map')}
59 >
60 Map
61 </button>
62 </nav>
63
64 <div className="topbar-right">
65 <button className="btn btn-secondary" onClick={saveProject}>
66 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
67 <path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" />
68 <path d="M17 21v-8H7v8M7 3v5h8" />
69 </svg>
70 Save
71 </button>
72 <ThemeToggle />
73 </div>
74 </header>
75
76 <main className="project-main">

Callers

nothing calls this directly

Calls 2

useProjectFunction · 0.90
useNavigationFunction · 0.90

Tested by

no test coverage detected