"use client";
import { ScanLine } from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { Button } from "@/components/shadcn/button/button";
import { LAUNCH_SCAN_HREF } from "@/lib/scans-navigation";
import { useScansStore } from "@/store";
import type { AppSidebarSelectionHandler } from "./types";
interface LaunchScanActionProps {
onSelect?: AppSidebarSelectionHandler;
}
function LaunchScanContent() {
return (
<>
Launch Scan
>
);
}
export function LaunchScanAction({ onSelect }: LaunchScanActionProps) {
const pathname = usePathname();
const openLaunchScanModal = useScansStore(
(state) => state.openLaunchScanModal,
);
const isScansPage = pathname.startsWith("/scans");
if (isScansPage) {
return (
);
}
return (
);
}