Gets the current transaction status based on its ID.
You can explore the full code for this example in Github.
export async function getStatus(id: string) {
const response = await basehub().mutation({
transactionStatus: {
__args: {
id,
},
},
});
return response.transactionStatus;
}