import React from 'react'; import { RocketIcon, TrendingUpIcon, XIcon } from 'lucide-react'; import { Button } from '../../ui/button'; /** * The copilot when it is closed: the floating button bottom-right, and above * it the one thing worth interrupting for - the quest or setup step it wants * the merchant to look at next. * * @param props - Component props. * @param props.logo - The plugin icon WordPress localized, when there is one. * @param props.questCount - How many open quests the badge counts. * @param props.notification - The line above the button, when there is one. * @param props.setupIncomplete - Setup is still running, so the mark is a * rocket rather than the growth arrow. * @param props.onOpen - Open the panel. * @param props.onAct - Act on the notification: ask about it, or just open. * @param props.onDismiss - Put the notification away. * @return The launcher. */ export function Launcher({ logo, questCount, notification, setupIncomplete, onOpen, onAct, onDismiss, }: { logo: string; questCount: number; notification: string | null; setupIncomplete: boolean; onOpen: () => void; onAct: () => void; onDismiss: () => void; }): React.ReactElement { return (
{notification && (
)}
); }