import api from '@incodetech/welcome/network/api'; import type { WorkflowNode } from './types'; type CurrentNodeProps = { token: string; }; const getCurrentNode = async ({ token }: CurrentNodeProps) => { const { data } = await api.get('/omni/workflow/current/node', { headers: { 'X-Incode-Hardware-Id': token, }, }); return data; }; export default getCurrentNode;