({
persistentId,
nodeId,
}: {
persistentId: string | null;
nodeId?: string;
})
| 191 | }; |
| 192 | |
| 193 | export const useNodeEntry = ({ |
| 194 | persistentId, |
| 195 | nodeId, |
| 196 | }: { |
| 197 | persistentId: string | null; |
| 198 | nodeId?: string; |
| 199 | }) => { |
| 200 | const result = api.nodeEntries.get.useQuery( |
| 201 | { persistentId: persistentId as string, nodeId: nodeId as string }, |
| 202 | { enabled: !!persistentId && !!nodeId }, |
| 203 | ); |
| 204 | |
| 205 | return useStableData(result); |
| 206 | }; |
| 207 | |
| 208 | export const useDatasetArchives = () => { |
| 209 | const dataset = useDataset().data; |
no test coverage detected