Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Jack in and jack off (#160)

Jacob Beckermandac3c256421e
diff --git a/js/app/packages/app/component/dock/Dock.tsx b/js/app/packages/app/component/dock/Dock.tsx
index 53a1736e42..860eb4e95b 100644
--- a/js/app/packages/app/component/dock/Dock.tsx
+++ b/js/app/packages/app/component/dock/Dock.tsx
@@ -25,12 +25,14 @@ import IconQuestion from '@icon/regular/question.svg';
import SplitIcon from '@icon/regular/square-split-horizontal.svg';
import IconAtom from '@macro-icons/macro-atom.svg';
import IconGear from '@macro-icons/macro-gear.svg';
-import { createMemo, createSignal, Show } from 'solid-js';
+import IconPower from '@phosphor-icons/core/regular/power.svg';
+import { createMemo, createSignal, onCleanup, onMount, Show } from 'solid-js';
import { setKonsoleOpen } from '../command/state';
import { useGlobalNotificationSource } from '../GlobalAppState';
import { BasicTierLimit } from './BasicTierLimit';
import { CreateMenu } from './CreateMenu';
import Hints from './Hints';
+import { PresentModeGlitch } from './PresentModeGlitch';
import { QuickAccess } from './QuickAccess';
export function Dock() {
@@ -67,138 +69,251 @@ export function Dock() {
};
const [debugOpen, setDebugOpen] = createSignal(false);
+ const [isPresentMode, setIsPresentMode] = createSignal(false);
+ const [showGlitchEffect, setShowGlitchEffect] = createSignal(false);
- return (
- <Show when={!isMobileWidth()}>
- <div class="z-1 relative flex shrink-0 bg-panel">
- <div
- onMouseDown={() => setKonsoleOpen(true)}
- class="group *:border-b-0 *:h-full relative border-t border-edge-muted flex justify-between items-center gap-2 pl-3 py-2"
- >
- <svg
- xmlns="http://www.w3.org/2000/svg"
- class="text-ink-muted group-hover:text-accent transition-all duration-300 size-6 mb-px"
- viewBox="0 0 185.062 122.8"
- >
- <path
- d="M48.143,0l-17.298,6.784v44.891l10.281,9.711v9.738l-10.281-9.72v-9.729l-13.547-12.792L0,45.664v51.515c0,.98.2,1.95.587,2.85.388.9.955,1.712,1.667,2.386l21.558,20.385,17.313-6.781v-44.891l54.654,51.673,17.313-6.781v-44.891l54.672,51.673,17.298-6.781v-51.515c0-.98-.2-1.95-.587-2.85-.388-.9-.955-1.712-1.667-2.385L120.127,0l-17.316,6.784v44.891l10.281,9.717-.1,9.638-10.181-9.623v-9.732L48.143,0Z"
- fill="currentColor"
- />
- </svg>
- <div class="**:border-none! flex size-full">
- <BasicHotkey shortcut="cmd+k" />
- </div>
- </div>
+ // Fullscreen API helpers
+ const enterPresentMode = async () => {
+ try {
+ const element = document.documentElement;
+ if (element.requestFullscreen) {
+ await element.requestFullscreen();
+ } else if ((element as any).webkitRequestFullscreen) {
+ // Safari
+ await (element as any).webkitRequestFullscreen();
+ } else if ((element as any).mozRequestFullScreen) {
+ // Firefox
+ await (element as any).mozRequestFullScreen();
+ } else if ((element as any).msRequestFullscreen) {
+ // IE/Edge
+ await (element as any).msRequestFullscreen();
+ }
+ } catch (error) {
+ console.error('Error entering present mode:', error);
+ }
+ };
- <div class="*:border-b-0 *:h-full">
- <CreateMenu />
- </div>
- <Show when={DEV_MODE_ENV}>
+ const exitPresentMode = async () => {
+ try {
+ if (document.exitFullscreen) {
+ await document.exitFullscreen();
+ } else if ((document as any).webkitExitFullscreen) {
+ // Safari
+ await (document as any).webkitExitFullscreen();
+ } else if ((document as any).mozCancelFullScreen) {
+ // Firefox
+ await (document as any).mozCancelFullScreen();
+ } else if ((document as any).msExitFullscreen) {
+ // IE/Edge
+ await (document as any).msExitFullscreen();
+ }
+ } catch (error) {
+ console.error('Error exiting present mode:', error);
+ }
+ };
+
+ const togglePresentMode = () => {
+ if (isPresentMode()) {
+ exitPresentMode();
+ setShowGlitchEffect(false);
+ } else {
+ // Show glitch effect before entering fullscreen
+ setShowGlitchEffect(true);
+ // Enter fullscreen after a brief delay to let glitch start
+ setTimeout(() => {
+ enterPresentMode();
+ }, 200);
+ }
+ };
+
+ // Check if we're in fullscreen
+ const checkFullscreen = () => {
+ const isFullscreen =
+ document.fullscreenElement ||
+ (document as any).webkitFullscreenElement ||
+ (document as any).mozFullScreenElement ||
+ (document as any).msFullscreenElement;
+ setIsPresentMode(!!isFullscreen);
+ };
+
+ // Listen for fullscreen changes
+ onMount(() => {
+ const events = [
+ 'fullscreenchange',
+ 'webkitfullscreenchange',
+ 'mozfullscreenchange',
+ 'MSFullscreenChange',
+ ];
+
+ events.forEach((event) => {
+ document.addEventListener(event, checkFullscreen);
+ });
+
+ // Also listen for ESC key to exit
+ const handleKeyDown = (e: KeyboardEvent) => {
+ if (e.key === 'Escape' && isPresentMode()) {
+ exitPresentMode();
+ }
+ };
+ document.addEventListener('keydown', handleKeyDown);
+
+ onCleanup(() => {
+ events.forEach((event) => {
+ document.removeEventListener(event, checkFullscreen);
+ });
+ document.removeEventListener('keydown', handleKeyDown);
+ });
+ });
+
+ return (
+ <>
+ <PresentModeGlitch
+ show={showGlitchEffect()}
+ onComplete={() => setShowGlitchEffect(false)}
+ />
+ <Show when={!isMobileWidth()}>
+ <div class="z-1 relative flex shrink-0 bg-panel">
<div
- class="-right-2 bottom-full absolute opacity-50 hover:opacity-100 outline outline-red-500right-0 font-mono text-dialog text-xs transition translate-x-full hover:translate-0 duration-500"
- title="Click to keep open"
- classList={{
- 'translate-0!': debugOpen(),
- }}
- onClick={() => setDebugOpen((p) => !p)}
+ onMouseDown={() => setKonsoleOpen(true)}
+ class="group *:border-b-0 *:h-full relative border-t border-edge-muted flex justify-between items-center gap-2 pl-3 py-2"
>
- <h3 class="right-full bottom-[7ch] absolute bg-ink px-1 py-px whitespace-nowrap -rotate-90 origin-bottom-right">
- Debug
- </h3>
- <ol class="flex flex-col bg-ink/50 px-[1ch] py-[1lh] list-decimal list-inside">
- <li class="whitespace-nowrap list-item">
- <span class="bg-ink px-1 py-px">{activeScope()}</span>
- </li>
- </ol>
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="text-ink-muted group-hover:text-accent transition-all duration-300 size-6 mb-px"
+ viewBox="0 0 185.062 122.8"
+ >
+ <path
+ d="M48.143,0l-17.298,6.784v44.891l10.281,9.711v9.738l-10.281-9.72v-9.729l-13.547-12.792L0,45.664v51.515c0,.98.2,1.95.587,2.85.388.9.955,1.712,1.667,2.386l21.558,20.385,17.313-6.781v-44.891l54.654,51.673,17.313-6.781v-44.891l54.672,51.673,17.298-6.781v-51.515c0-.98-.2-1.95-.587-2.85-.388-.9-.955-1.712-1.667-2.385L120.127,0l-17.316,6.784v44.891l10.281,9.717-.1,9.638-10.181-9.623v-9.732L48.143,0Z"
+ fill="currentColor"
+ />
+ </svg>
+ <div class="**:border-none! flex size-full">
+ <BasicHotkey shortcut="cmd+k" />
+ </div>
</div>
- </Show>
- <Show when={!hasPaid()}>
- <BasicTierLimit />
- </Show>
-
- <div class="flex flex-1 justify-center items-center gap-6 px-6 border-edge-muted border-t font-mono text-ink-extra-muted text-xs">
- <Show when={hasPaid()}>
- <Hints />
+ <div class="*:border-b-0 *:h-full">
+ <CreateMenu />
+ </div>
+ <Show when={DEV_MODE_ENV}>
+ <div
+ class="-right-2 bottom-full absolute opacity-50 hover:opacity-100 outline outline-red-500right-0 font-mono text-dialog text-xs transition translate-x-full hover:translate-0 duration-500"
+ title="Click to keep open"
+ classList={{
+ 'translate-0!': debugOpen(),
+ }}
+ onClick={() => setDebugOpen((p) => !p)}
+ >
+ <h3 class="right-full bottom-[7ch] absolute bg-ink px-1 py-px whitespace-nowrap -rotate-90 origin-bottom-right">
+ Debug
+ </h3>
+ <ol class="flex flex-col bg-ink/50 px-[1ch] py-[1lh] list-decimal list-inside">
+ <li class="whitespace-nowrap list-item">
+ <span class="bg-ink px-1 py-px">{activeScope()}</span>
+ </li>
+ </ol>
+ </div>
</Show>
- <Show when={ENABLE_DOCK_NOTITIFCATIONS}>
- <QuickAccess />
- <GlobalNotificationBell notificationSource={notificationSource} />
+
+ <Show when={!hasPaid()}>
+ <BasicTierLimit />
</Show>
- </div>
- <div class="flex items-stretch border-edge-muted border-t border-r">
- <IconButton
- icon={IconQuestion}
- theme="clear"
- class="h-full aspect-square"
- classList={{
- 'opacity-0 pointer-events-none': !isSoupActive(),
- }}
- tooltip={{
- label: 'Help',
- hotkeyToken: TOKENS.split.showHelpDrawer,
- }}
- onClick={() => {
- const showHelp = activeSoupDrawerCommand();
- if (!showHelp) return;
- runCommand(showHelp);
- }}
- />
- <Show when={ENABLE_RIGHTHAND_SIDEBAR}>
+ <div class="flex flex-1 justify-center items-center gap-6 px-6 border-edge-muted border-t font-mono text-ink-extra-muted text-xs">
+ <Show when={hasPaid()}>
+ <Hints />
+ </Show>
+ <Show when={ENABLE_DOCK_NOTITIFCATIONS}>
+ <QuickAccess />
+ <GlobalNotificationBell notificationSource={notificationSource} />
+ </Show>
+ </div>
+
+ <div class="flex items-stretch border-edge-muted border-t border-r">
+ <IconButton
+ icon={IconQuestion}
+ theme="clear"
+ class="h-full aspect-square"
+ classList={{
+ 'opacity-0 pointer-events-none': !isSoupActive(),
+ }}
+ tooltip={{
+ label: 'Help',
+ hotkeyToken: TOKENS.split.showHelpDrawer,
+ }}
+ onClick={() => {
+ const showHelp = activeSoupDrawerCommand();
+ if (!showHelp) return;
+ runCommand(showHelp);
+ }}
+ />
+ <Show when={ENABLE_RIGHTHAND_SIDEBAR}>
+ <IconButton
+ icon={IconAtom}
+ theme={isRightPanelCollapsed() ? 'clear' : 'accent'}
+ tooltip={{
+ label: 'Toggle AI Panel',
+ hotkeyToken: TOKENS.global.toggleRightPanel,
+ }}
+ class="h-full aspect-square"
+ onClick={() => {
+ if (isRightPanelCollapsed()) {
+ track(TrackingEvents.RIGHTBAR.OPEN);
+ } else {
+ track(TrackingEvents.RIGHTBAR.CLOSE);
+ }
+ toggleRightPanel();
+ }}
+ />
+ </Show>
+
<IconButton
- icon={IconAtom}
- theme={isRightPanelCollapsed() ? 'clear' : 'accent'}
+ icon={SplitIcon}
+ theme="clear"
tooltip={{
- label: 'Toggle AI Panel',
- hotkeyToken: TOKENS.global.toggleRightPanel,
+ label: 'Create New Split',
+ hotkeyToken: TOKENS.global.createNewSplit,
}}
class="h-full aspect-square"
onClick={() => {
- if (isRightPanelCollapsed()) {
- track(TrackingEvents.RIGHTBAR.OPEN);
- } else {
- track(TrackingEvents.RIGHTBAR.CLOSE);
+ const manager = globalSplitManager();
+ if (manager) {
+ manager.createNewSplit({
+ type: 'component',
+ id: 'unified-list',
+ });
}
- toggleRightPanel();
}}
/>
- </Show>
- <IconButton
- icon={SplitIcon}
- theme="clear"
- tooltip={{
- label: 'Create New Split',
- hotkeyToken: TOKENS.global.createNewSplit,
- }}
- class="h-full aspect-square"
- onClick={() => {
- const manager = globalSplitManager();
- if (manager) {
- manager.createNewSplit({
- type: 'component',
- id: 'unified-list',
- });
- }
- }}
- />
-
- <IconButton
- icon={IconGear}
- theme={settingsOpen() ? 'accent' : 'clear'}
- tooltip={{
- label: settingsOpen() ? 'Close Settings' : 'Open Settings',
- hotkeyToken: TOKENS.global.toggleSettings,
- }}
- class="h-full aspect-square"
- data-settings-button
- onDeepClick={() => {
- setSettingsOpen(true);
- }}
- />
+ <IconButton
+ icon={IconPower}
+ theme={isPresentMode() ? 'accent' : 'clear'}
+ tooltip={{
+ label: isPresentMode()
+ ? 'Exit Present Mode'
+ : 'Enter Present Mode',
+ }}
+ class="h-full aspect-square"
+ onClick={togglePresentMode}
+ />
+
+ <IconButton
+ icon={IconGear}
+ theme={settingsOpen() ? 'accent' : 'clear'}
+ tooltip={{
+ label: settingsOpen() ? 'Close Settings' : 'Open Settings',
+ hotkeyToken: TOKENS.global.toggleSettings,
+ }}
+ class="h-full aspect-square"
+ data-settings-button
+ onDeepClick={() => {
+ setSettingsOpen(true);
+ }}
+ />
+ </div>
</div>
- </div>
- </Show>
+ </Show>
+ </>
);
}
diff --git a/js/app/packages/app/component/dock/PresentModeGlitch.tsx b/js/app/packages/app/component/dock/PresentModeGlitch.tsx
new file mode 100644
index 0000000000..fe4ee01518
--- /dev/null
+++ b/js/app/packages/app/component/dock/PresentModeGlitch.tsx
@@ -0,0 +1,201 @@
+import { GlitchText } from '@core/component/GlitchText';
+import { PcNoiseGrid } from '@core/component/PcNoiseGrid';
+import { createEffect, createSignal, For, onCleanup, Show } from 'solid-js';
+
+interface PresentModeGlitchProps {
+ show: boolean;
+ onComplete: () => void;
+}
+
+export function PresentModeGlitch(props: PresentModeGlitchProps) {
+ const [isVisible, setIsVisible] = createSignal(false);
+ const [showContent, setShowContent] = createSignal(false);
+ let timeoutIds: number[] = [];
+
+ createEffect(() => {
+ if (props.show) {
+ setIsVisible(true);
+ // Start content animation after a brief delay
+ const id = window.setTimeout(() => {
+ setShowContent(true);
+ }, 50);
+ timeoutIds.push(id);
+ } else {
+ setIsVisible(false);
+ setShowContent(false);
+ timeoutIds.forEach((id) => clearTimeout(id));
+ timeoutIds = [];
+ }
+ });
+
+ onCleanup(() => {
+ timeoutIds.forEach((id) => clearTimeout(id));
+ });
+
+ const handleAnimationComplete = () => {
+ // Wait a bit then fade out
+ const id1 = window.setTimeout(() => {
+ setIsVisible(false);
+ const id2 = window.setTimeout(() => {
+ props.onComplete();
+ }, 200);
+ timeoutIds.push(id2);
+ }, 400);
+ timeoutIds.push(id1);
+ };
+
+ return (
+ <Show when={isVisible()}>
+ <div
+ class="fixed inset-0 z-[99999] pointer-events-none"
+ style={{
+ 'background-color': '#000000',
+ opacity: isVisible() ? 1 : 0,
+ transition: 'opacity 0.2s ease-out',
+ }}
+ >
+ {/* Cybernetic noise grid background */}
+ <div class="absolute inset-0 opacity-20">
+ <PcNoiseGrid
+ cellSize={8}
+ warp={2}
+ crunch={0.5}
+ size={[1, 1]}
+ rounding={0}
+ freq={0.01}
+ speed={[0.5, 0.3]}
+ />
+ </div>
+
+ {/* Scanlines overlay */}
+ <div
+ class="absolute inset-0 opacity-20"
+ style={{
+ 'background-image':
+ 'repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 196, 255, 0.1) 2px, rgba(0, 196, 255, 0.1) 4px)',
+ 'background-size': '100% 4px',
+ }}
+ />
+
+ {/* Glitch distortion effect */}
+ <div
+ class="absolute inset-0 opacity-10"
+ style={{
+ 'background-image': `
+ linear-gradient(90deg, transparent 0%, rgba(0, 196, 255, 0.1) 50%, transparent 100%),
+ linear-gradient(0deg, transparent 0%, rgba(0, 196, 255, 0.05) 50%, transparent 100%)
+ `,
+ 'background-size': '200% 200%',
+ animation: 'glitch-scan 0.1s linear infinite',
+ }}
+ />
+
+ {/* Main content */}
+ <Show when={showContent()}>
+ <div class="absolute inset-0 flex flex-col items-center justify-center gap-8">
+ {/* Glitch text with shadow effects */}
+ <div class="relative">
+ {/* Shadow glitch layers */}
+ <div class="absolute inset-0 blur-sm opacity-50">
+ <GlitchText
+ from=""
+ to="JACKED IN"
+ chars="█▓▒░▀▄▌▐■□▲►▼◄◀▶◁▷◊○●◯◮◭◬◫◪◩◨◧◦◥◤◣◢◡◠◟◞◝◜◛◚◙◘◗◖◕◔◓◒◑◐●◎◍◌○◊"
+ cycles={1}
+ framerate={48}
+ delay={0}
+ class="font-mono text-6xl sm:text-8xl text-accent/30 font-bold tracking-wider"
+ />
+ </div>
+ {/* Main glitch text */}
+ <div class="relative">
+ <GlitchText
+ from=""
+ to="JACKED IN"
+ chars="█▓▒░▀▄▌▐■□▲►▼◄◀▶◁▷◊○●◯◮◭◬◫◪◩◨◧◦◥◤◣◢◡◠◟◞◝◜◛◚◙◘◗◖◕◔◓◒◑◐●◎◍◌○◊"
+ cycles={1}
+ framerate={48}
+ delay={0}
+ onComplete={handleAnimationComplete}
+ class="font-mono text-6xl sm:text-8xl text-accent font-bold tracking-wider drop-shadow-[0_0_20px_rgba(0,196,255,0.5)]"
+ />
+ </div>
+ </div>
+
+ {/* Cybernetic brackets with animated dots */}
+ <div class="flex items-center gap-4 text-accent/50 font-mono text-2xl">
+ <span class="animate-pulse">[</span>
+ <span class="text-accent/30 flex items-center gap-1">
+ <span>A</span>
+ <span class="animate-pulse">C</span>
+ <span>T</span>
+ <span class="animate-pulse">I</span>
+ <span>V</span>
+ <span class="animate-pulse">A</span>
+ <span>T</span>
+ <span class="animate-pulse">I</span>
+ <span>N</span>
+ <span class="animate-pulse">G</span>
+ </span>
+ <span class="animate-pulse">]</span>
+ </div>
+
+ {/* Animated glitch lines */}
+ <div class="absolute inset-0 pointer-events-none overflow-hidden">
+ <For each={Array.from({ length: 30 }, (_, i) => i)}>
+ {(i) => {
+ const delay = i * 50;
+ const offset = (i % 3) * 33;
+ return (
+ <div
+ class="absolute w-full h-px bg-accent glitch-line"
+ style={{
+ top: `${offset}%`,
+ left: '0%',
+ opacity: '0.1',
+ 'animation-delay': `${delay}ms`,
+ }}
+ />
+ );
+ }}
+ </For>
+ </div>
+
+ {/* Corner brackets */}
+ <div class="absolute top-8 left-8 text-accent/20 font-mono text-4xl">
+ {'{'}
+ </div>
+ <div class="absolute top-8 right-8 text-accent/20 font-mono text-4xl">
+ {'}'}
+ </div>
+ <div class="absolute bottom-8 left-8 text-accent/20 font-mono text-4xl">
+ {'['}
+ </div>
+ <div class="absolute bottom-8 right-8 text-accent/20 font-mono text-4xl">
+ {']'}
+ </div>
+ </div>
+ </Show>
+
+ {/* CSS animations */}
+ <style>
+ {`
+ @keyframes glitch-scan {
+ 0% { background-position: 0% 0%; }
+ 100% { background-position: 100% 100%; }
+ }
+ @keyframes glitch-line {
+ 0%, 100% { transform: translateX(0px); }
+ 25% { transform: translateX(50px); }
+ 50% { transform: translateX(-50px); }
+ 75% { transform: translateX(30px); }
+ }
+ .glitch-line {
+ animation: glitch-line 0.5s linear infinite;
+ }
+ `}
+ </style>
+ </div>
+ </Show>
+ );
+}
diff --git a/js/app/packages/app/public/crosshair-cursor.svg b/js/app/packages/app/public/crosshair-cursor.svg
new file mode 100644
index 0000000000..ca8fda565e
--- /dev/null
+++ b/js/app/packages/app/public/crosshair-cursor.svg
@@ -0,0 +1,22 @@
+<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
+ <!-- Outer guides with white outline for visibility -->
+ <line x1="16" y1="2" x2="16" y2="8" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
+ <line x1="16" y1="24" x2="16" y2="30" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
+ <line x1="2" y1="16" x2="8" y2="16" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
+ <line x1="24" y1="16" x2="30" y2="16" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
+ <line x1="16" y1="2" x2="16" y2="8" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
+ <line x1="16" y1="24" x2="16" y2="30" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
+ <line x1="2" y1="16" x2="8" y2="16" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
+ <line x1="24" y1="16" x2="30" y2="16" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
+
+ <!-- Center crosshair lines with white outline -->
+ <line x1="16" y1="10" x2="16" y2="22" stroke="white" stroke-width="3" stroke-linecap="round"/>
+ <line x1="10" y1="16" x2="22" y2="16" stroke="white" stroke-width="3" stroke-linecap="round"/>
+ <line x1="16" y1="10" x2="16" y2="22" stroke="black" stroke-width="2" stroke-linecap="round"/>
+ <line x1="10" y1="16" x2="22" y2="16" stroke="black" stroke-width="2" stroke-linecap="round"/>
+
+ <!-- Center dot with white outline -->
+ <circle cx="16" cy="16" r="2" fill="white"/>
+ <circle cx="16" cy="16" r="1.5" fill="black"/>
+</svg>
+
diff --git a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
index 5621312171..b85160765c 100644
--- a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
+++ b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
@@ -344,8 +344,9 @@ export function EntityWithEverything(
use:droppable
class={`relative group py-[5px] px-2 ${ITEM_WRAPPER_CLASS()}`}
classList={{
- 'bg-hover ring-1 ring-edge-muted/50': props.highlighted,
+ 'bg-hover': props.highlighted,
bracket: props.selected,
+ 'bg-hover ring-1 ring-inset ring-edge-muted': props.selected,
}}
onMouseOver={(e) => {
if (!didCursorMove(e)) {