import { Dropdown, type DropdownItem, IconButton } from "@yaakapp-internal/ui"; import { useAtomValue } from "jotai"; import { useRpcMutation } from "../hooks/useRpcMutation"; import { flowTotalAtom } from "../lib/store"; /** Deletes every flow, once confirmed in its menu, which its hotkey opens too */ export function ClearFlowsButton() { const total = useAtomValue(flowTotalAtom); const clear = useRpcMutation("clear_flows"); const items: DropdownItem[] = [ { type: "content", label: (