import { navigate } from "./router.js" import { MenuTile } from "./menu-tile.js" export const Tools = { name: "Tools", components: { MenuTile }, props: { tools: { type: Array, required: true }, mode: { type: String, required: true } }, methods: { open(tool) { navigate(tool.path) }, availability(tool) { if (this.mode === "local" || tool.availability === "always") return "" return tool.availability === "partial-preview" ? "Sample available" : "Connect to your device to use this tool" }, }, template: `