ruvector/studio/components/interfaces/Database/Functions/CreateFunction/CreateFunctionHeader.tsx
rUv 814f595995 feat(studio): Add complete RuVector Studio application
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>
2025-12-06 23:04:48 +00:00

38 lines
1.2 KiB
TypeScript

import { X } from 'lucide-react'
import { SheetClose, SheetHeader, SheetTitle, cn } from 'ui'
interface CreateFunctionHeaderProps {
selectedFunction?: string
isDuplicating?: boolean
}
export const CreateFunctionHeader = ({
selectedFunction,
isDuplicating,
}: CreateFunctionHeaderProps) => {
return (
<SheetHeader className="py-3 flex flex-row justify-between items-center border-b-0">
<div className="flex flex-row gap-3 items-center max-w-[75%]">
<SheetClose
className={cn(
'text-muted hover:text ring-offset-background transition-opacity hover:opacity-100',
'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
'disabled:pointer-events-none data-[state=open]:bg-secondary',
'transition'
)}
>
<X className="h-3 w-3" />
<span className="sr-only">Close</span>
</SheetClose>
<SheetTitle className="truncate">
{selectedFunction !== undefined
? isDuplicating
? `Duplicate function`
: `Edit '${selectedFunction}' function`
: 'Add a new function'}
</SheetTitle>
</div>
</SheetHeader>
)
}