Buckets:
| import { DialogPrompt } from "../ui/dialog-prompt" | |
| import { useDialog } from "../ui/dialog" | |
| import { useSync } from "../context/sync" | |
| import { createMemo } from "solid-js" | |
| import { useSDK } from "../context/sdk" | |
| interface DialogSessionRenameProps { | |
| session: string | |
| } | |
| export function DialogSessionRename(props: DialogSessionRenameProps) { | |
| const dialog = useDialog() | |
| const sync = useSync() | |
| const sdk = useSDK() | |
| const session = createMemo(() => sync.session.get(props.session)) | |
| return ( | |
| <DialogPrompt | |
| title="Rename Session" | |
| value={session()?.title} | |
| onConfirm={(value) => { | |
| void sdk.client.session.update({ | |
| sessionID: props.session, | |
| title: value, | |
| }) | |
| dialog.clear() | |
| }} | |
| onCancel={() => dialog.clear()} | |
| /> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 802 Bytes
- Xet hash:
- 65fd28022f17f0de9fc44846ab837a7316e65c77ca4a260876bb243bf635a9eb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.