import { ElMessage } from 'element-plus'
import { setResponseDataInterceptor } from '@repo/api-client'

setResponseDataInterceptor((data) => {
	if (data?.isSuccess === false && typeof data?.error === 'string' && data.error) {
		ElMessage.error(data.error)
	}
})
