{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "actions",
  "registryDependencies": [
    "https://taki-ui.com/r/button.json",
    "https://taki-ui.com/r/tooltip.json"
  ],
  "files": [
    {
      "path": "registry/new-york/ai-elements/actions.tsx",
      "content": "\"use client\"\n\nimport type { ComponentProps } from \"react\"\nimport { composeRenderProps } from \"react-aria-components\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, type ButtonProps } from \"@/registry/new-york/ui/button\"\nimport { Tooltip, TooltipTrigger } from \"@/registry/new-york/ui/tooltip\"\n\nexport type ActionsProps = ComponentProps<\"div\">\n\nexport const Actions = ({ className, children, ...props }: ActionsProps) => (\n  <div className={cn(\"flex items-center gap-1\", className)} {...props}>\n    {children}\n  </div>\n)\n\nexport type ActionProps = ButtonProps & {\n  tooltip?: string\n  label?: string\n}\n\nexport const Action = ({\n  tooltip,\n  children,\n  label,\n  className,\n  variant = \"ghost\",\n  size = \"sm\",\n  ...props\n}: ActionProps) => {\n  if (tooltip) {\n    return (\n      <TooltipTrigger>\n        <Button\n          className={cn(\n            \"text-muted-foreground hover:text-foreground relative size-9 p-1.5\",\n            className\n          )}\n          size={size}\n          type=\"button\"\n          variant={variant}\n          {...props}\n        >\n          {composeRenderProps(children, (children) => (\n            <>\n              {children}\n              <span className=\"sr-only\">{label || tooltip}</span>\n            </>\n          ))}\n        </Button>\n        <Tooltip>{tooltip}</Tooltip>\n      </TooltipTrigger>\n    )\n  }\n\n  return (\n    <Button\n      className={cn(\n        \"text-muted-foreground hover:text-foreground relative size-9 p-1.5\",\n        className\n      )}\n      size={size}\n      type=\"button\"\n      variant={variant}\n      {...props}\n    >\n      {composeRenderProps(children, (children) => (\n        <>\n          {children}\n          <span className=\"sr-only\">{label || tooltip}</span>\n        </>\n      ))}\n    </Button>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}