mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-25 17:09:53 +02:00
f967820f12
- [x] Move from `sqlx` to `rusqlite` - [x] Generate TS types from Rust models
8 lines
291 B
TypeScript
8 lines
291 B
TypeScript
import type { GrpcConnection } from '@yaakapp/api';
|
|
import { useGrpcConnections } from './useGrpcConnections';
|
|
|
|
export function useLatestGrpcConnection(requestId: string | null): GrpcConnection | null {
|
|
const connections = useGrpcConnections(requestId);
|
|
return connections[0] ?? null;
|
|
}
|