import { useState } from 'react'; import { useStore } from '@nanostores/react'; import { workbenchStore } from '~/lib/stores/workbench'; import { DeployButton } from '~/components/deploy/DeployButton'; import { MultiUserToggle } from '~/components/multiuser/MultiUserToggle'; interface HeaderActionButtonsProps { chatStarted: boolean; } export function HeaderActionButtons({ chatStarted: _chatStarted }: HeaderActionButtonsProps) { const [activePreviewIndex] = useState(0); const previews = useStore(workbenchStore.previews); const activePreview = previews[activePreviewIndex]; const shouldShowButtons = activePreview; return (
{/* Multi-User Sessions Toggle (Bolt.gives Exclusive) */} {/* Deploy Button */} {shouldShowButtons && } {/* Bug Report Button */} {shouldShowButtons && (
)}
); }