mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-26 07:44:05 +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>
30 lines
895 B
TypeScript
30 lines
895 B
TypeScript
import { AnimatePresence, motion } from 'framer-motion'
|
|
import { RotateCcw } from 'lucide-react'
|
|
|
|
import { Button } from 'ui'
|
|
|
|
export function InputResetButton({ isDirty, onClick }: { isDirty: boolean; onClick: () => void }) {
|
|
return (
|
|
<AnimatePresence initial={false}>
|
|
{isDirty && (
|
|
<motion.div
|
|
key="reset-disksize"
|
|
initial={{ opacity: 0, scale: 0.95, x: -2 }}
|
|
animate={{ opacity: 1, scale: 1, x: 0 }}
|
|
exit={{ opacity: 0, scale: 0.95, x: -2 }}
|
|
transition={{ duration: 0.12 }}
|
|
>
|
|
<Button
|
|
htmlType="button"
|
|
type="default"
|
|
size="small"
|
|
className="px-2 text-foreground-light"
|
|
onClick={onClick}
|
|
>
|
|
<RotateCcw className="h-4 w-4" aria-hidden="true" />
|
|
</Button>
|
|
</motion.div>
|
|
)}
|
|
</AnimatePresence>
|
|
)
|
|
}
|