/* Copyright 2026 Marimo. All rights reserved. */ import React from "react"; import { Button } from "@/components/ui/button"; import { useInstallPackages } from "@/core/packages/useInstallPackage"; import { cn } from "@/utils/cn"; interface InstallPackageButtonProps { packages: string[] | undefined; showMaxPackages?: number; className?: string; onInstall?: () => void; } /** * Button to install missing packages * Opens the packages panel and focuses the input */ export const InstallPackageButton: React.FC = ({ packages, showMaxPackages, className, onInstall, }) => { const { handleInstallPackages } = useInstallPackages(); if (!packages || packages.length === 0) { return null; } return ( ); };