import mytheme from "../themes/mytheme.json" with { type: "json" }
const slot = (label) => ({
id: "workspace-smoke",
slots: {
home_hint() {
return [plugin:{label}]
},
home_footer() {
return theme:workspace-plugin-smoke
},
session_footer(_ctx, props) {
return session:{props.session_id.slice(0, 8)}
},
},
})
const themes = {
"workspace-plugin-smoke": mytheme,
}
const tui = async (input, options) => {
if (options?.enabled === false) return
const label = typeof options?.label === "string" ? options.label : "smoke"
input.slots.register(slot(label))
}
export default {
themes,
tui,
}