()
| 12 | |
| 13 | function View(props: { api: TuiPluginApi; session_id: string }) { |
| 14 | const theme = () => props.api.theme.current |
| 15 | const msg = createMemo(() => props.api.state.session.messages(props.session_id)) |
| 16 | const session = createMemo(() => props.api.state.session.get(props.session_id)) |
| 17 | const cost = createMemo(() => session()?.cost ?? 0) |