GHHG10's picture
download
raw
729 Bytes
import { createMemo } from "solid-js"
import { useLocal } from "../context/local"
import { DialogSelect } from "../ui/dialog-select"
import { useDialog } from "../ui/dialog"
export function DialogAgent() {
const local = useLocal()
const dialog = useDialog()
const options = createMemo(() =>
local.agent.list().map((item) => {
return {
value: item.name,
title: item.name,
description: item.native ? "native" : item.description,
}
}),
)
return (
<DialogSelect
title="Select agent"
current={local.agent.current()?.name}
options={options()}
onSelect={(option) => {
local.agent.set(option.value)
dialog.clear()
}}
/>
)
}

Xet Storage Details

Size:
729 Bytes
·
Xet hash:
a9944bddb7e6da6913c1ebed182fc9f7c873afd5725ade2c7cb18b752019fce9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.