(item: TuiPluginStatus, width: number)
| 26 | } |
| 27 | |
| 28 | function meta(item: TuiPluginStatus, width: number) { |
| 29 | if (item.source === "internal") { |
| 30 | if (width >= 120) return "Built-in plugin" |
| 31 | return "Built-in" |
| 32 | } |
| 33 | const next = source(item.spec) |
| 34 | if (next) return next |
| 35 | return item.spec |
| 36 | } |
| 37 | |
| 38 | function Install(props: { api: TuiPluginApi }) { |
| 39 | const [global, setGlobal] = createSignal(false) |