import { useEcho } from '@laravel/echo-vue'; export const useAutomationEcho = ( automationId: string, event: string | string[], callback: (payload: T) => void, ) => { return useEcho(`automation.${automationId}`, event, callback); };