mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-26 16:04:02 +00:00
Major additions: - Complete Next.js studio application with 1600+ components - Docker support (Dockerfile.combined, docker-compose.yml) - GCP deployment documentation and benchmarks - SQL benchmark scripts for performance testing - Sentry integration for monitoring - Comprehensive test suite and mocks Studio features: - Dashboard and admin interfaces - Data visualization components - Authentication and user management - API integration with RuVector backend - Static data and public assets 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
import { PropsWithChildren } from 'react'
|
|
import { useAppStateSnapshot } from 'state/app-state'
|
|
import { cn } from 'ui'
|
|
|
|
interface Props {
|
|
title?: string
|
|
}
|
|
|
|
const MobileViewNav = ({ title }: PropsWithChildren<Props>) => {
|
|
const { mobileMenuOpen, setMobileMenuOpen } = useAppStateSnapshot()
|
|
|
|
return (
|
|
<nav
|
|
className={cn(
|
|
'group px-4 z-10 w-full h-10',
|
|
'border-b border-default',
|
|
'transition-width duration-200',
|
|
'flex md:hidden flex-row items-center gap-1 overflow-x-auto'
|
|
)}
|
|
>
|
|
<button
|
|
title="Menu dropdown button"
|
|
className={cn(
|
|
'group/view-toggle flex justify-center flex-col border-none space-x-0 items-start gap-1 !bg-transparent rounded-md min-w-[30px] w-[30px] h-[30px]'
|
|
)}
|
|
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
|
|
>
|
|
<div className="h-px inline-block left-0 w-4 transition-all ease-out bg-foreground-lighter group-hover/view-toggle:bg-foreground p-0 m-0" />
|
|
<div className="h-px inline-block left-0 w-3 transition-all ease-out bg-foreground-lighter group-hover/view-toggle:bg-foreground p-0 m-0" />
|
|
</button>
|
|
<div className="flex items-center">
|
|
<h4 className="text-base">{title}</h4>
|
|
</div>
|
|
</nav>
|
|
)
|
|
}
|
|
|
|
export default MobileViewNav
|