add more robust util fn

This commit is contained in:
James
2025-12-22 12:40:56 -05:00
parent 64bf02d59c
commit 3c48b2ceb7
2 changed files with 11 additions and 4 deletions

View File

@@ -1,11 +1,8 @@
import type { NavigateOptions } from '@tanstack/react-router';
import { cn } from '@/lib/utils';
import { cn, isMac } from '@/lib/utils';
import { AutomakerLogo } from './automaker-logo';
import { BugReportButton } from './bug-report-button';
// Detect if running on macOS for traffic light button spacing
const isMac = typeof navigator !== 'undefined' && /Mac/.test(navigator.userAgent);
interface SidebarHeaderProps {
sidebarOpen: boolean;
navigate: (opts: NavigateOptions) => void;