{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "server-off",
  "type": "registry:ui",
  "addGlobalCss": false,
  "registryDependencies": [],
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "files": [
    {
      "path": "server-off-icon.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport type { Variants } from \"motion/react\";\nimport {\n LazyMotion,\n domMin,\n m,\n useAnimation,\n useReducedMotion,\n} from \"motion/react\";\nimport {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useRef,\n type HTMLAttributes,\n} from \"react\";\nexport interface ServerOffIconHandle {\n startAnimation: () => void;\n stopAnimation: () => void;\n}\n\ninterface ServerOffIconProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n | \"color\"\n | \"onDrag\"\n | \"onDragStart\"\n | \"onDragEnd\"\n | \"onAnimationStart\"\n | \"onAnimationEnd\"\n | \"onAnimationIteration\"\n> {\n size?: number;\n duration?: number;\n isAnimated?: boolean;\n color?: string;\n}\n\nconst ServerOffIcon = forwardRef<ServerOffIconHandle, ServerOffIconProps>(\n (\n  {\n   onMouseEnter,\n   onMouseLeave,\n   className,\n   size = 24,\n   duration = 1,\n   isAnimated = true,\n   color,\n   ...props\n  },\n  ref,\n ) => {\n  const controls = useAnimation();\n  const reduced = useReducedMotion();\n  const isControlled = useRef(false);\n\n  useImperativeHandle(ref, () => {\n   isControlled.current = true;\n   return {\n    startAnimation: () =>\n     reduced ? controls.start(\"normal\") : controls.start(\"animate\"),\n    stopAnimation: () => controls.start(\"normal\"),\n   };\n  });\n\n  const handleEnter = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isAnimated || reduced) return;\n    if (!isControlled.current) controls.start(\"animate\");\n    else onMouseEnter?.(e as any);\n   },\n   [controls, reduced, isAnimated, onMouseEnter],\n  );\n\n  const handleLeave = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isControlled.current) controls.start(\"normal\");\n    else onMouseLeave?.(e as any);\n   },\n   [controls, onMouseLeave],\n  );\n\n  const bodyVariants: Variants = {\n   normal: { opacity: 1 },\n   animate: {\n    opacity: [1, 0.4, 1],\n    transition: { duration: 0.7 * duration, ease: \"easeInOut\" },\n   },\n  };\n\n  const slashVariants: Variants = {\n   normal: { strokeDashoffset: 0 },\n   animate: {\n    strokeDashoffset: [30, 0],\n    transition: {\n     duration: 0.45 * duration,\n     ease: \"easeInOut\",\n     delay: 0.1 * duration,\n    },\n   },\n  };\n\n  return (\n   <LazyMotion features={domMin} strict>\n    <m.div\n     className={cn(\"inline-flex items-center justify-center\", className)}\n     onMouseEnter={handleEnter}\n     onMouseLeave={handleLeave}\n     {...props}\n     style={{ color, ...props.style }}\n    >\n     <m.svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth=\"2\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      animate={controls}\n      initial=\"normal\"\n     >\n      <m.g variants={bodyVariants}>\n       <path d=\"M8.99219 3.99976H17.9922C19.8778 3.99976 20.8206 3.99976 21.4064 4.58554C21.9922 5.17133 21.9922 6.11414 21.9922 7.99976C21.9922 9.88537 21.9922 10.8282 21.4064 11.414C20.8206 11.9998 19.8778 11.9998 17.9922 11.9998H16.9922\" />\n       <path d=\"M11.9922 11.9998H5.99219C4.10657 11.9998 3.16376 11.9998 2.57797 11.414C1.99219 10.8282 1.99219 9.88541 1.99219 7.99979C1.99219 6.11417 1.99219 5.17136 2.57797 4.58558C2.90456 4.25899 3.34213 4.11448 3.99219 4.05054\" />\n       <path d=\"M19.4922 19.9825C19.0712 20 18.5771 20 17.9922 20H5.99219C4.10657 20 3.16376 20 2.57797 19.4142C1.99219 18.8284 1.99219 17.8855 1.99219 15.9999C1.99219 14.1142 1.99219 13.1713 2.57798 12.5855C3.16378 11.9997 4.10659 11.9997 5.99223 11.9998L11.9922 11.9998\" />\n       <path d=\"M16.9922 11.9999L17.9922 11.9999C19.8778 11.9999 20.8206 11.9999 21.4064 12.5857C21.9922 13.1715 21.9922 14.1143 21.9922 15.9999C21.9922 16.3676 21.9922 16.6995 21.9878 16.9999\" />\n       <path d=\"M6.11719 7.99976H5.99219M6.24219 7.99976C6.24219 8.13783 6.13026 8.24976 5.99219 8.24976C5.85412 8.24976 5.74219 8.13783 5.74219 7.99976C5.74219 7.86169 5.85412 7.74976 5.99219 7.74976C6.13026 7.74976 6.24219 7.86169 6.24219 7.99976Z\" />\n       <path d=\"M6.11719 15.9998H5.99219M6.24219 15.9998C6.24219 16.1378 6.13026 16.2498 5.99219 16.2498C5.85412 16.2498 5.74219 16.1378 5.74219 15.9998C5.74219 15.8617 5.85412 15.7498 5.99219 15.7498C6.13026 15.7498 6.24219 15.8617 6.24219 15.9998Z\" />\n       <path d=\"M10.1172 15.9998H9.99219M10.2422 15.9998C10.2422 16.1378 10.1303 16.2498 9.99219 16.2498C9.85412 16.2498 9.74219 16.1378 9.74219 15.9998C9.74219 15.8617 9.85412 15.7498 9.99219 15.7498C10.1303 15.7498 10.2422 15.8617 10.2422 15.9998Z\" />\n      </m.g>\n      <m.path\n       d=\"M1.99219 1.99976L21.9922 21.9998\"\n       strokeDasharray=\"30\"\n       strokeDashoffset=\"0\"\n       variants={slashVariants}\n      />\n     </m.svg>\n    </m.div>\n   </LazyMotion>\n  );\n },\n);\n\nServerOffIcon.displayName = \"ServerOffIcon\";\nexport { ServerOffIcon };\n",
      "type": "registry:ui"
    }
  ]
}