export function buildSuggestedActionKey(action) {
  const actionType = String(action?.action_type || '').trim()
  const payload = action?.payload && typeof action.payload === 'object' ? action.payload : {}
  const payloadKey = String(payload.expense_type || payload.expense_type_label || action?.label || '').trim()
  return `${actionType}:${payloadKey}`
}
